Stat Card
A production-scale, light + dark Stat Card component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add stat-cardLive preview available in the gallery.
Usage
import { StatCard } from "@lerpa/ui";
<StatCard />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | - | |
| value | string | number | - | |
| change | number | — | |
| changeType | 'positive' | 'negative' | 'neutral' | — | |
| timeframe | string | — | |
| icon | React.ReactNode | — | |
| trendLabel | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.