DataLiquid Glass
Sparkline
Compact inline sparkline for KPI cards and dense metric rows. Preview live, copy the source, or install with the CLI into your Next.js project.
Install
npx @intellihelper/cli@latest add sparklineInline sparklines
Compact series for dense metric rows and cards.
About this component
Sparkline is part of Data. Compact inline sparkline for KPI cards and dense metric rows.
Install with npx @intellihelper/cli@latest add sparkline. Files land in your project so you can customize styles, variants, and behavior without a locked package.
Prefer AI-assisted install? Use the agent plugin or the MCP server.
When to use Sparkline
Use when
- Use Sparkline when compact inline sparkline for KPI cards and dense metric rows.
- Tabular data, empty states, skeletons, and loading placeholders.
- Dense operational UIs where scanability matters.
Avoid when
- Narrative content better as cards or markdown.
- Tiny datasets that fit a simple list without table semantics.
Accessibility notes
- Tables need proper headers; empty states should explain next actions.
- Skeletons should be supplemented with aria-busy on the live region.
Interactive primitives build on accessible patterns (including Radix where applicable). Always verify focus order and contrast on your mesh or product background.
Composition tips
- Show empty states with a clear primary action (e.g. add first item).
- Prefer progressive loading over layout shifts (reserve row height).