Responsive Area Metric Chart
A production-scale, light + dark Responsive Area Metric Chart component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add responsive-area-metric-chartLive preview available in the gallery.
Usage
import { ResponsiveAreaMetricChart } from "@lerpa/ui";
<ResponsiveAreaMetricChart />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| data | AreaChartDataPoint[] | - | |
| title | string | — | |
| description | string | — | |
| valuePrefix | string | — | |
| valueSuffix | string | — | |
| dataKey | string | — | |
| strokeColor | string | — | |
| fillColor | string | — | |
| className | string | — | |
| showGrid | boolean | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.