Spaces:
Sleeping
Sleeping
Crs-Lionel
Claude Opus 4.8
Initial commit: FilezKit backend + frontend, dockerized for HF Spaces
82a25a8 Download frontend/src/components/Icon.tsx from tech-ties/filezkit-backend: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/tech-ties/filezkit-backend/resolve/main/frontend/src/components/Icon.tsx
- Command line
-
hf download hf://spaces/tech-ties/filezkit-backend/frontend/src/components/Icon.tsx
-
curl -L -o Icon.tsx https://huggingface.co/spaces/tech-ties/filezkit-backend/resolve/main/frontend/src/components/Icon.tsx
723 Bytes
| interface IconProps { | |
| d: string | string[]; | |
| size?: number; | |
| stroke?: string; | |
| fill?: string; | |
| strokeWidth?: number; | |
| className?: string; | |
| style?: React.CSSProperties; | |
| } | |
| export default function Icon({ | |
| d, | |
| size = 20, | |
| stroke = "currentColor", | |
| fill = "none", | |
| strokeWidth = 1.8, | |
| className, | |
| style, | |
| }: IconProps) { | |
| return ( | |
| <svg | |
| width={size} | |
| height={size} | |
| viewBox="0 0 24 24" | |
| fill={fill} | |
| stroke={stroke} | |
| strokeWidth={strokeWidth} | |
| strokeLinecap="round" | |
| strokeLinejoin="round" | |
| className={className} | |
| style={style} | |
| > | |
| {Array.isArray(d) | |
| ? d.map((path, i) => <path key={i} d={path} />) | |
| : <path d={d} />} | |
| </svg> | |
| ); | |
| } | |