Sparkline

Line ChartStat Card

A tiny, axis-free trend for tables and cards.

Starter25
Pro58
Enterprise6

Installation

pnpm add krz-ui

Usage

import { Sparkline } from "krz-ui";
<Sparkline data={[12, 14, 13, 17, 19, 22, 25]} label="Signups, last 7 days" />

API Reference

PropTypeDescription
datanumber[]Values, oldest first.
labelstringDescribes the trend for screen readers.
heightnumberHeight in px. Default 36; width fills the container.
colorstringAny CSS color. Default --krz-chart-1.
areabooleanLight wash under the line. Default true.
className / style / ref—All go to the outer element. See Customization.