Download client/src/components/Button/Button.tsx from Kaidok9/tttstysds: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/Kaidok9/tttstysds/resolve/main/client/src/components/Button/Button.tsx
- Command line
-
hf download hf://spaces/Kaidok9/tttstysds/client/src/components/Button/Button.tsx
-
curl -L -o Button.tsx https://huggingface.co/spaces/Kaidok9/tttstysds/resolve/main/client/src/components/Button/Button.tsx
396 Bytes
| import { FC } from "react"; | |
| type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>; | |
| export const Button: FC<ButtonProps> = ({ children, className, ...props }) => { | |
| return ( | |
| <button | |
| className={`rounded-lg shadow-sm disabled:bg-gray-100 bg-white hover:text-black py-2 px-3 active:text-black ${className ?? ""}`} | |
| {...props} | |
| > | |
| {children} | |
| </button> | |
| ); | |
| }; | |