Spark Chart
FREETiny line, area or bar trend for tables and cards.
Installation
Terminal
npx @bloxa/cli add spark-chart
# or: npx shadcn@latest add @bloxa/spark-chartPackages installed automatically: motion
Examples
In a table
Signups1,284
Errors14
Orders612
API reference
Every component also accepts the props of the element it renders.
SparkChart
| Prop | Type | Default | Description |
|---|---|---|---|
| data | number[] | — | Values. |
| variant | "line" | "area" | "bar" | "area" | Style. |
| color / height | string / number | accent / 32 | Color and height. |