Spaces:
Sleeping
Sleeping
Download src/components/textButton.tsx from ratalai/chatvrm_for_desh: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/ratalai/chatvrm_for_desh/resolve/main/src/components/textButton.tsx
- Command line
-
hf download hf://spaces/ratalai/chatvrm_for_desh/src/components/textButton.tsx
-
curl -L -o textButton.tsx https://huggingface.co/spaces/ratalai/chatvrm_for_desh/resolve/main/src/components/textButton.tsx
416 Bytes
| import { ButtonHTMLAttributes } from "react"; | |
| type Props = ButtonHTMLAttributes<HTMLButtonElement>; | |
| export const TextButton = (props: Props) => { | |
| return ( | |
| <button | |
| {...props} | |
| className={`px-24 py-8 text-white font-bold bg-primary hover:bg-primary-hover active:bg-primary-press-press disabled:bg-primary-disabled rounded-oval ${props.className}`} | |
| > | |
| {props.children} | |
| </button> | |
| ); | |
| }; | |