Spaces:
Running
Running
Download frontend/src/app/components/CodeBlock.js from davebulaval/cole: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/spaces/davebulaval/cole/resolve/main/frontend/src/app/components/CodeBlock.js
- Command line
-
hf download hf://spaces/davebulaval/cole/frontend/src/app/components/CodeBlock.js
-
curl -L -o CodeBlock.js https://huggingface.co/spaces/davebulaval/cole/resolve/main/frontend/src/app/components/CodeBlock.js
261 Bytes
| export default function CodeBlock({children}){ | |
| return ( | |
| <pre className="bg-gray-100 p-4 rounded-md overflow-x-auto text-sm text-gray-800 mt-4"> | |
| <code className="font-mono"> | |
| {children} | |
| </code> | |
| </pre> | |
| ); | |
| }; |