sigilUI

Spark Line

A tiny inline sparkline chart for embedding in dashboard cards and tables.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { SparkLine } from "@sigil-ui/components";

Usage

<SparkLine data={[10, 25, 18, 32, 28, 45]} color="var(--s-primary)" />

Props

PropTypeDefaultDescription
datanumber[]—Array of numeric values (min 2)
widthnumber120SVG width
heightnumber32SVG height
colorstringvar(--s-primary)Line and fill color
filledbooleantrueFill area under line
showEndDotbooleantrueShow dot on the last data point

Token integration

CSS VariablePurpose
--s-primaryDefault line and fill color