Download tabler-react/src/components/Text/TextSmall.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Text/TextSmall.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Text/TextSmall.react.js
-
curl -L -o TextSmall.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Text/TextSmall.react.js
558 Bytes
| // @flow | |
| import * as React from "react"; | |
| import Text from "./"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +className?: string, | |
| +color?: string, | |
| +wrap?: boolean, | |
| +muted?: boolean, | |
| |}; | |
| const TextSmall = ({ | |
| className, | |
| children, | |
| color = "", | |
| wrap, | |
| muted, | |
| }: Props): React.Node => { | |
| return ( | |
| <Text | |
| RootComponent="small" | |
| color={color} | |
| size="sm" | |
| wrap={wrap} | |
| className={className} | |
| muted={muted} | |
| > | |
| {children} | |
| </Text> | |
| ); | |
| }; | |
| TextSmall.displayName = "Text.Small"; | |
| export default TextSmall; | |