Get StartedComponentsStylingThemingMath & Science
MCP

Charts

Sparkline

Tiny inline charts for tables, cards and lists.

Markdown

Import

tsx
import { Sparkline } from "@indoku/ui"

Examples

Basic

Area

Trend color

color=trend is green when the series ends higher, red when lower.

Interaction tooltip

Hover to read a value.

Stock composition

Sparklines inside a watchlist.

AAPL

$231.4

+110.0%

TSLA

$412.9

-57.1%

NVDA

$188.2

+175.0%

Props

Sparkline

PropTypeDefaultDescription
valuesnumber[]–Data points.
colorstring'blue'Color token, or trend.
areabooleanfalseFill under the line.
interactivebooleanfalseShow the hovered value.
width / heightnumber120 / 32Size in px.

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev