Download tabler-react/src/components/List/ListGroup.react.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/List/ListGroup.react.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/List/ListGroup.react.js
-
curl -L -o ListGroup.react.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/List/ListGroup.react.js
578 Bytes
| // @flow | |
| import * as React from "react"; | |
| import cn from "classnames"; | |
| type Props = {| | |
| +children?: React.Node, | |
| +className?: string, | |
| +transparent?: boolean, | |
| +isCardBody?: boolean, | |
| |}; | |
| function ListGroup({ | |
| className, | |
| children, | |
| transparent, | |
| isCardBody, | |
| }: Props): React.Node { | |
| const classes = cn( | |
| "list-group", | |
| "mb-0", | |
| { | |
| "list-group-transparent": transparent, | |
| "card-list-group": isCardBody, | |
| }, | |
| className | |
| ); | |
| return <div className={classes}>{children}</div>; | |
| } | |
| ListGroup.displayName = "List.Group"; | |
| export default ListGroup; | |