Spaces:
Paused
Paused
Download ui/src/components/Card.tsx from StaticExposure/ai-toolkit: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/StaticExposure/ai-toolkit/resolve/main/ui/src/components/Card.tsx
- Command line
-
hf download hf://spaces/StaticExposure/ai-toolkit/ui/src/components/Card.tsx
-
curl -L -o Card.tsx https://huggingface.co/spaces/StaticExposure/ai-toolkit/resolve/main/ui/src/components/Card.tsx
396 Bytes
| interface CardProps { | |
| title?: string; | |
| children?: React.ReactNode; | |
| } | |
| const Card: React.FC<CardProps> = ({ title, children }) => { | |
| return ( | |
| <section className="space-y-2 px-4 pb-4 pt-2 bg-gray-900 rounded-lg"> | |
| {title && <h2 className="text-lg mb-2 font-semibold uppercase text-gray-500">{title}</h2>} | |
| {children ? children : null} | |
| </section> | |
| ); | |
| }; | |
| export default Card; | |