Sparkline
Tiny inline SVG sparkline chart — no external dependencies.
Import
import { Sparkline } from "neoterm-ui";Usage
<Sparkline data={[5, 12, 8, 20, 14, 18]} />
<Sparkline data={[5, 12, 8, 20]} width={120} height={32} color="var(--cyan)" fill={false} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| data | number[] | SparklinePoint[] | — | Data points. |
| width | number | 80 | SVG width. |
| height | number | 24 | SVG height. |
| color | string | var(--chart-1) | Stroke color. |
| fill | boolean | true | Show area fill. |
| strokeWidth | number | 1.5 | Line stroke width. |