Content
Chart
A small trend line drawn in plain SVG, with an optional area fill and a dot on the latest value.
Group: Content. Exports: Sparkline. shadcn/ui equivalent: Chart (partial parity).
Usage
import { Sparkline } from "./halaska-kit";
Sparkline props
dataarray(default []):widthnumber(default 240):heightnumber(default 72):colorstring:fillboolean(default true):styleCSSProperties: Inline style merged onto the root element.
Accessibility
- The SVG is marked aria-hidden, so screen readers skip it.
- State the value or the trend in text beside the chart.
- Not interactive: there is no focus, hover or tooltip.
Known gaps
- Sparkline is the only chart. The kit ships no chart library by design, so there are no bar, area, pie or radar charts.
- No axes, grid, legend or tooltip.
Used in
Halaska UI · Components · Patterns · Screens · Install