Download src/components/dashboard/StatsCard.tsx from AZILS/gemini: direct link, hf CLI and curl.
- Browser
- Download file 755 Bytes
-
https://huggingface.co/spaces/AZILS/gemini/resolve/main/src/components/dashboard/StatsCard.tsx
- Command line
-
hf download hf://spaces/AZILS/gemini/src/components/dashboard/StatsCard.tsx
-
curl -L -o StatsCard.tsx https://huggingface.co/spaces/AZILS/gemini/resolve/main/src/components/dashboard/StatsCard.tsx
755 Bytes
| import { LucideIcon } from 'lucide-react'; | |
| interface StatsCardProps { | |
| icon: LucideIcon; | |
| title: string; | |
| value: string | number; | |
| description?: string; | |
| colorClass?: string; | |
| } | |
| function StatsCard({ icon: Icon, title, value, description, colorClass = 'primary' }: StatsCardProps) { | |
| return ( | |
| <div className="stat bg-base-100 shadow rounded-lg"> | |
| <div className={`stat-figure text-${colorClass}`}> | |
| <Icon className="w-8 h-8" /> | |
| </div> | |
| <div className="stat-title">{title}</div> | |
| <div className={`stat-value text-${colorClass}`}>{value}</div> | |
| {description && <div className="stat-desc">{description}</div>} | |
| </div> | |
| ); | |
| } | |
| export default StatsCard; | |