A KPI card: a rolling value, a square delta badge (ink up, signal down), a sub-line, and a 16-point sparkline whose line and points glide to new data.
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/metric-card.jsonpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/metric-card.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
import { MetricCard } from "@/components/ui/notchset/metric-card";
const trend = [1980, 2040, 2110, 2090, 2230, 2310, 2486];
export function ActiveAgents() {
return <MetricCard label="ACTIVE AGENTS" value={2486} delta={18.4} sub="VS PREVIOUS 7 DAYS" series={trend} />;
}label–
ReactNodeThe eyebrow.
value–
numberThe figure.
delta–
numberPercent change; negative is down.
sub–
ReactNodeThe comparison.
series–
number[]The sparkline.
components/ui/notchset/metric-card.tsx