Download react-query/examples/react/nextjs/src/components/InfoBox.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/components/InfoBox.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/components/InfoBox.tsx
-
curl -L -o InfoBox.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/components/InfoBox.tsx
413 Bytes
| import React from 'react' | |
| const InfoBox = ({ children }: { children: React.ReactNode }) => ( | |
| <div className="info"> | |
| <style jsx>{` | |
| .info { | |
| margin-top: 20px; | |
| margin-bottom: 20px; | |
| padding-top: 20px; | |
| padding-bottom: 20px; | |
| border-top: 1px solid #ececec; | |
| border-bottom: 1px solid #ececec; | |
| } | |
| `}</style> | |
| {children} | |
| </div> | |
| ) | |
| export { InfoBox } | |