Range Sparkline Tile
A stat tile with a headline figure, a range sparkline of vertical pills per period, and a signed delta with an icon.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { Activity } from 'lucide-react';import { RangeSparklineTile } from '@/components/component-kit/items/chart-range-sparkline-tile';
export function Example() { return ( <RangeSparklineTile icon={Activity} title="Active sessions" value="48.2K" delta={8.4} ranges={[{ low: 30, high: 62 }, { low: 41, high: 70 }, { low: 25, high: 58 }, { low: 36, high: 64 }]} /> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | ReactNode | — | The headline figure, already formatted. |
ranges | RangePoint[] | — | Low and high per period. |
delta | number | — | Signed percentage change. |
upIsGood | boolean | true | Whether an increase should read as good. |