Spaces:
Running
Running
Download new/frontends/react/src/ui/Button.tsx from elvis-hf/cnn_visualizer: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/elvis-hf/cnn_visualizer/resolve/main/new/frontends/react/src/ui/Button.tsx
- Command line
-
hf download hf://spaces/elvis-hf/cnn_visualizer/new/frontends/react/src/ui/Button.tsx
-
curl -L -o Button.tsx https://huggingface.co/spaces/elvis-hf/cnn_visualizer/resolve/main/new/frontends/react/src/ui/Button.tsx
329 Bytes
| interface ButtonProps { | |
| label: string; | |
| onClick?: () => void; | |
| } | |
| export default function Button({ label, onClick }: ButtonProps) { | |
| return ( | |
| <button | |
| onClick={onClick} | |
| className="px-5 py-2 cursor-pointer bg-orange-200 rounded hover:bg-orange-300 border border-gray-300" | |
| > | |
| {label} | |
| </button> | |
| ); | |
| } |