Sparkline Stat Card
A production-scale, light + dark Sparkline Stat Card component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add sparkline-stat-cardLive preview available in the gallery.
Usage
import { SparklineStatCard } from "@lerpa/ui";
<SparklineStatCard />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| data | number[] | — | |
| value | string | — | |
| label | string | — | |
| delta | number | — | |
| deltaCaption | string | — | |
| color | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.