Download react-spring/docs/app/components/Grids/ExampleGrid.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Grids/ExampleGrid.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Grids/ExampleGrid.tsx
-
curl -L -o ExampleGrid.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Grids/ExampleGrid.tsx
583 Bytes
| import { CardExample } from '~/components/Cards/CardExample' | |
| import { SANDBOXES } from '~/data/sandboxes' | |
| import { useCSB } from '~/hooks/useCSB' | |
| import { exampleGridRoot } from './ExampleGrid.css' | |
| interface ExampleGridProps { | |
| sandboxTitles: Array<keyof typeof SANDBOXES> | |
| } | |
| export const ExampleGrid = ({ sandboxTitles }: ExampleGridProps) => { | |
| const sandboxes = useCSB(sandboxTitles) | |
| return ( | |
| <ul className={exampleGridRoot}> | |
| {sandboxes.map(sandbox => ( | |
| <li key={sandbox.id}> | |
| <CardExample {...sandbox} /> | |
| </li> | |
| ))} | |
| </ul> | |
| ) | |
| } | |