Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA small SVG line chart of a numeric series with an optional dot on the last value.
Derived from this item’s props table, because it declares no controls of its own. Changes drive the preview live.
import { Sparkline } from "@/components/ui/sparkline"<Sparkline label="Weekly signups" values={[8, 12, 11, 17, 14, 20]} />| Prop | Type | Default | Description |
|---|---|---|---|
values | number[] | - | Samples in order. Non-finite values are skipped. |
label | string | - | Name of the series. The accessible name also includes the first and last value. |
height | number | 48 | Height in pixels. Width fills the container. |
showEnd | boolean | true | Draws a dot on the last value. |
Also accepts all <svg> props.
The line uses currentColor, so set the color with a text class such as text-chart-3.