Download tabler-react/src/components/Table/TableRow.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Table/TableRow.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Table/TableRow.react.js
-
curl -L -o TableRow.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Table/TableRow.react.js
397 Bytes
| // @flow | |
| import * as React from "react"; | |
| import cn from "classnames"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +className?: string, | |
| |}; | |
| function TableRow({ className, children, ...props }: Props): React.Node { | |
| const classes = cn(className); | |
| return ( | |
| <tr className={classes} {...props}> | |
| {children} | |
| </tr> | |
| ); | |
| } | |
| TableRow.displayName = "Table.Row"; | |
| export default TableRow; | |