react-code-dataset / nivo /website /src /components /controls /ui /PropertyDescription.tsx
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
551 Bytes
import React from 'react'
import styled from 'styled-components'
import dedent from 'dedent-js'
import { Markdown } from '../../Markdown'
const Description = styled.div`
grid-column-start: 2;
font-size: 0.8rem;
margin-top: 12px;
p {
margin: 7px 0;
}
`
interface PropertyDescriptionProps {
description: string
}
export const PropertyDescription = ({ description }: PropertyDescriptionProps) => {
return (
<Description>
<Markdown source={dedent(description)} />
</Description>
)
}