Download tabler-react/src/components/Timeline/TimelineItemTitle.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Timeline/TimelineItemTitle.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Timeline/TimelineItemTitle.react.js
-
curl -L -o TimelineItemTitle.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Timeline/TimelineItemTitle.react.js
383 Bytes
| // @flow | |
| import * as React from "react"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +active?: boolean, | |
| |}; | |
| function TimelineItemTitle({ children, active }: Props): React.Node { | |
| if (children) { | |
| return active ? <strong>{children}</strong> : children; | |
| } else { | |
| return null; | |
| } | |
| } | |
| TimelineItemTitle.displayName = "Timeline.ItemTitle"; | |
| export default TimelineItemTitle; | |