# Sparkline

A tiny trend line beside a figure.

Import from `@a31labs/rax/sparkline`.

## Usage

```tsx
<Sparkline label="Requests, last 7 days: rising from 12 to 40" data={[12, 18, 40]} area />
```

## Rules

Props: `data` (numbers), `width` (default 96), `height` (default 24), `label` (required; `role="img"` and `aria-label`, e.g. "Requests, last 7 days: rising from 12 to 40"), `area` (fills under the line with accent-soft). An inline SVG line with no axes, for Stat values and table cells. The stroke is `currentColor` and defaults to `--rax-accent`; set `color` to recolour it. Empty data, a single point and flat lines render as a centred line.

Page: https://rax.a31.at/components/sparkline
