
Fluid Drag-and-Drop Kanban
A Trello-grade board running real pointer physics, where every card tilts toward the velocity you throw it across at.
Dashboard KPI cards with a smooth SVG sparkline chart and a glowing dot that snaps to whichever value you scrub across.
KPI Card with Sparkline is a React and Tailwind CSS stat card for SaaS dashboards that pairs a headline number with an SVG trend line, in Next.js or any React app. The curve is a monotone cubic path built in the component, so there is no chart library and the line never overshoots your data. Move the pointer across it and a glowing dot snaps to the nearest point while the headline and footer show that value and date. A green or red pill shows the change from the first value, so pass deltaPercent when your series starts at zero.
Run the following command
pnpm dlx wensity@latest add metric-sparkline-card
npx wensity@latest add metric-sparkline-card
yarn dlx wensity@latest add metric-sparkline-card
bunx wensity@latest add metric-sparkline-card
Import MetricSparklineCard from @/components/wensity/metric-sparkline-card and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
"use client";import { MetricSparklineCard } from "@/components/wensity/metric-sparkline-card";const revenueData = [24000, 24820, 25104, 24960, 26410, 27120, 28330];export function MetricSparklineCardDemo() {return (<MetricSparklineCardlabel="Revenue"prefix="$"values={revenueData}formatValue={(n) => Math.round(n).toLocaleString()}/>);}
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | - | Metric label shown above the value. |
values | number[] | - | Raw series values. Length should be at least 2. |
formatValue | (n: number) => string | - | Pretty-print the primary value. If omitted, the last data point is shown. |
prefix | string | - | Optional value prefix such as $. |
suffix | string | - | Optional value suffix such as users. |
width | number | 320 | SVG width in pixels. |
height | number | 84 | SVG height in pixels. |
deltaPercent | number | - | Optional explicit delta percentage. When omitted, derived from first vs last. |
stroke | string | - | Stroke color CSS variable or hex. Defaults to chili-500. |
dates | string[] | - | Optional dates corresponding to the values. |
statusLabel | string | - | Optional default footer label when not hovering. |

A Trello-grade board running real pointer physics, where every card tilts toward the velocity you throw it across at.

A multi-step form wizard whose card physically reshapes to wrap each new step as the content slides in behind it.

365 squares sharing one tooltip that flies between days on rails, with a reveal that ripples backward from today.

Pricing cards with a monthly and annual toggle, prices that spring to new values, and a highlighted plan in a brand glow.