Components
Components
Sparkline
Compact inline trend line for dense data surfaces.
newfree
Install
@hewnui/ui · hewnui
Sparkline 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.
API reference
Props for Sparkline from @hewnui/ui/sparkline. Generated from component types — not hand-written.
Prop
Type