

Every state


default


hover


focus


inspect


period-focus


year
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| title | string | "Sign-ups" | Title text. |
| periods | ChartCardAreaPeriod[] | [ { short: "7d", label: "Last 7 days", points: mk(dayLabels(7, 27), [142, 168, 155, 181, 176, 129, 118]), from: "21 N… | Periods. |
| defaultPeriod | number | 1 | The period shown first (index). |
| unit | string | "sign-ups" | What a value counts, for the readout ("sign-ups"). |
| periodsLabel | string | "Period" | Name of the period switch, for screen readers. |
| format | Intl.NumberFormatOptions | { maximumFractionDigits: 0 } | Format. |
| locale | string | "en-IE" | Locale for numbers and dates. |
| defaultActive | number | null | null | The point the readout starts on. Left out: none until you hover or use the keys. |
| className | string | – | Extra classes on the outer element. |
More chart cards
All 8chart-card-01 is in UI ProGet UI Pro, €199


