Sparkline
Free, copy-pasteable Tailwind CSS Sparkline component. Accessible, fully responsive, dark-mode ready, and customizable.
Install via CLI
Run this command to automatically add the component and its dependencies to your project.
npx @abhaysinghr516/business-wish init first to initialize your project.Micro-charts that pack maximum signal into minimum space. These Sparkline components built on recharts are axis-free, grid-free, and fully embeddable — designed to live inside table cells, KPI cards, or sidebar metrics without demanding visual real estate.
Four variants: a raw line, a gradient-fill area, a 30-point activity histogram, and a complete self-contained metric widget card.
Line Sparkline
A pure, ultra-thin line trace — zero axes, zero grid, zero clutter. Embed it directly inside a table cell or any tight container to communicate 7–30 day trends at a glance. Accepts color, height, data, and dataKey props.
Area Sparkline
A line sparkline with a transparent gradient fill anchoring the curve — communicates volume and momentum together. The gradient ID is a stable string (no # chars) to avoid invalid SVG element IDs.
Bar Sparkline
A 30-point activity histogram — each bar's opacity is mapped to three tiers (high / mid / low) relative to the dataset maximum. Data is deterministic (no Math.random()) to prevent SSR hydration mismatches.
Widget Sparkline
A self-contained metric card. The delta badge and sparkline color are computed dynamically from the last two data points — no hardcoded values. The sparkline bleeds edge-to-edge using negative margin.