The shadcn Alert with states and an optional usage bar for limits and budgets.
Or press the action: it raises the budget and the alert resolves.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { Alert, AlertAction, AlertKicker, AlertMeter, AlertTitle } from "@/components/ui/notchset/alert";
export function BudgetAlert({ spent, budget, onRaise }: { spent: number; budget: number; onRaise: () => void }) {
return (
<Alert tone="warn">
<AlertKicker>Cost alert · Planner</AlertKicker>
<AlertTitle>Spend reached {Math.round((spent / budget) * 100)}% of the August budget.</AlertTitle>
<AlertMeter value={spent} max={budget} threshold={0.8} label="August budget">
${spent} OF ${budget} · ALERT AT 80%
</AlertMeter>
<AlertAction onClick={onRaise}>Raise to $700</AlertAction>
</Alert>
);
}tone–
"warn" | "ok" | "info"Warn is signal and role=alert; ok and info are ink and role=status. shadcn's variant="destructive" maps to warn.
AlertKicker / AlertTitle / AlertDescription–
elementsThe mono line, the title, body text.
AlertMeter–
{ value, max, threshold?, label? }The 160px ruler; threshold is a fraction of max. Children are its reading.
AlertAction–
button propsThe 40px action key at the end of the row.
Alertdata-slot="alert"
The row.
AlertKickerdata-slot="alert-kicker"
The mono line.
AlertTitledata-slot="alert-title"
The title.
AlertMeterdata-slot="alert-meter"
The ruler and its reading.
AlertActiondata-slot="alert-action"
The action key.
components/ui/notchset/alert.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/alert.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/alert.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 @notchset registry added, @notchset/<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.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release