shadcn's Alert in Notchset: a 3px rail, a state node, a mono kicker over the title and a budget ruler with its threshold tick; warn is signal, resolved is ink, and changing tone crossfades while the ruler glides.
Or press the action: it raises the budget and the alert resolves.
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/alert.jsonpnpm dlx shadcn@latest add https://beautiful-ui.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 @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.
"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.
components/ui/notchset/alert.tsx