Components
Components
Sparkline
Compact inline trend line for dense data surfaces.
newfree
pnpm add @komponents/uiCanonical TypeScript source · tree-shakeable subpathsSparkline is a minimal trend line for tables, cards, and dashboards. It uses
role="img" with a required summary and respects reduced motion.
Usage
States
loading— skeleton placeholderempty— dashed empty message (also whendatais empty)error— alert message
Accessibility
Provide a concrete summary. Prefer a surrounding visually-hidden data table
when the exact values matter.