Spaces:
Running
Running
Download web/src/components/ui/Card.tsx from SZLHOLDINGS/a11oy: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/SZLHOLDINGS/a11oy/resolve/9cb85b2bab73618d2bbfc5cefb88cc83a5a86a4d/web/src/components/ui/Card.tsx
- Command line
-
hf download hf://spaces/SZLHOLDINGS/a11oy@9cb85b2bab73618d2bbfc5cefb88cc83a5a86a4d/web/src/components/ui/Card.tsx
-
curl -L -o Card.tsx https://huggingface.co/spaces/SZLHOLDINGS/a11oy/resolve/9cb85b2bab73618d2bbfc5cefb88cc83a5a86a4d/web/src/components/ui/Card.tsx
579 Bytes
| import type React from 'react'; | |
| export interface CardProps extends React.HTMLAttributes<HTMLDivElement> { | |
| accent?: string; | |
| padding?: string | number; | |
| radius?: number; | |
| } | |
| export function Card({ children, accent, padding = '16px 20px', radius = 8, style, ...rest }: CardProps) { | |
| return ( | |
| <div | |
| style={{ | |
| border: `1px solid ${accent ? `${accent}40` : 'rgba(255,255,255,0.08)'}`, | |
| borderRadius: radius, | |
| background: 'rgba(255,255,255,0.025)', | |
| padding, | |
| ...style, | |
| }} | |
| {...rest} | |
| > | |
| {children} | |
| </div> | |
| ); | |
| } | |