Compact metric card with a large value, delta percentage, and an SVG sparkline with a tone-colored stroke and faint area fill.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Dashboard2 } from "@/components/beste/piece/dashboard2";
<Dashboard2
label="Active users"
value="4,821"
delta="+6.8%"
values={[
22,
28,
24,
33,
31,
40,
38,
46,
44,
52,
58,
64
]}
tone="violet"
/>Single-metric card with a large value, semantic delta pill that flips emerald for gains and rose for losses, and a comparison period.
Two-by-two KPI grid where each cell carries a tone-tinted icon tile, label, and monospaced value.
Recent-events list with semantic action icons (create, update, delete, signup) and a relative timestamp on the right.
Ranked list where each row's background bar fills proportionally to its value, with index and count on either end.
Conversion funnel stages where each row's bar narrows against the top stage and a rose drop-off percentage marks churn.
Dashboard filter bar with a primary date-range button, a comparison-period dropdown, and a segment filter toggle.