Budget against actual by department and line, with overspend flags and period switching.
Import it and pass your content. The props that matter most are listed next.
import { BudgetVariance, type BudgetDepartment, type BudgetLine } from "@/components/ui/notchset/blocks/budget-variance";
export function Spend({ departments }: { departments: BudgetDepartment[] }) {
return (
<BudgetVariance
title="Budget vs actual"
periods={[{ id: "month", label: "MONTH", caption: "SEPTEMBER 2026" }]}
departments={departments}
onFlag={(line: BudgetLine, department: BudgetDepartment, flagged: boolean) =>
fetch("/api/flags", { method: "POST", body: JSON.stringify({ line: line.id, owner: department.owner, flagged }) })
}
/>
);
}departments–
{ id, name, owner, initials, lines: { id, name, amounts }[] }[]amounts maps each period id to [actual, budget] in currency units.
periods–
{ id, label, caption }[]The period control (MONTH / QUARTER / YEAR TO DATE) and the caption above the title.
title / currency–
stringThe heading and the currency after the caption (USD).
defaultFlagged / onFlag–
string[] / (line, department, flagged) => voidLines flagged at the start, and notifying a line's owner.
BudgetVariancedata-slot="budget-variance"
Header controls, total, departments with lines, flags and legend.
components/ui/notchset/blocks/budget-variance.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @beautiful-ui-pro/budget-varianceNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
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://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-04
First release
Pro is in early access.