Installation
bash
npx shadcn@latest add https://ui.noicess.fun/r/sparkline.jsonProps
| Prop | Type | Default | Description |
|---|---|---|---|
| data | number[] | - | The series to draw. Scaled to the viewBox. |
| color | string | "var(--color-brand)" | Stroke and fill colour. |
| area | boolean | true | Fill the area under the line. |
| animate | boolean | true | Draw the line when it first enters view. |
| height | number | 40 | Height in pixels. Width stays fluid. |
| label | string | - | Accessible description of the series. |