Download src/theme/misc/Card.tsx from yiting1124/TranslateGemma-WebGPU: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/yiting1124/TranslateGemma-WebGPU/resolve/main/src/theme/misc/Card.tsx
- Command line
-
hf download hf://spaces/yiting1124/TranslateGemma-WebGPU/src/theme/misc/Card.tsx
-
curl -L -o Card.tsx https://huggingface.co/spaces/yiting1124/TranslateGemma-WebGPU/resolve/main/src/theme/misc/Card.tsx
465 Bytes
| import { ReactNode, CSSProperties } from "react"; | |
| import cn from "../../utils/classnames.ts"; | |
| interface CardProps { | |
| className?: string; | |
| children?: ReactNode; | |
| style?: CSSProperties; | |
| } | |
| export default function Card({ className = "", children, style }: CardProps) { | |
| return ( | |
| <div | |
| className={cn( | |
| "bg-white rounded-lg shadow-md p-8 border border-border", | |
| className | |
| )} | |
| style={style} | |
| > | |
| {children} | |
| </div> | |
| ); | |
| } | |