Sparkline
Each example below is a real component instance — flip the theme toggle to see how it adapts.
Default#
Filled#
Loading…
Stat Tiles#
Loading…
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
| values * | readonly number[] | — | Numeric series. Drawn at uniform horizontal spacing. |
| width | number | undefined | 160 | Pixel width. Default 160. |
| height | number | undefined | 32 | Pixel height. Default 32. |
| stroke | string | undefined | currentColor | Stroke color (CSS color or var). Defaults to `currentColor`. |
| strokeWidth | number | undefined | 1.5 | Stroke width. Default 1.5. |
| fill | boolean | undefined | false | When true, fills the area under the line at 16% opacity. |
| aria-label | string | undefined | Trend | Accessible label. Defaults to `Trend`. |