An add-on store for an existing plan that shows the prorated cost today and the next bill.
Import it and pass your content. The props that matter most are listed next.
import { AddonCart } from "@/components/ui/notchset/blocks/addon-cart";
export function Capacity() {
return (
<AddonCart
context="ACME LABS · TEAM PLAN"
addons={[{ id: "seats", glyph: "+1", name: "Extra seat", description: "One more person.", price: 29, unit: "MO PER SEAT", max: 20 }]}
planPrice={990}
planLabel="TEAM PLAN"
nextBill="NOV 01"
proration={{ fraction: 0.6, label: "18 OF 30 DAYS" }}
onCheckout={(lines) => fetch("/api/addons", { method: "POST", body: JSON.stringify(lines) })}
confirmation={(n) => `Added ${n} to Acme Labs`}
/>
);
}addons–
{ id, glyph, name, description, price, unit, max, active? }[]The cards; active means already on the plan.
planPrice / planLabel / nextBill–
number / string / stringThe plan's line and the next bill's date.
proration–
{ fraction, label }Today's share of the month ("18 OF 30 DAYS" → 0.6).
onCheckout / confirmation / currency–
(lines) => Promise / (count) => string / (n) => stringAdd the cart to the subscription (resolve to confirm), the confirmation line, money formatting.
AddonCartdata-slot="addon-cart"
Cards, cart chip and the drawer.
components/ui/notchset/blocks/addon-cart.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/addon-cartNeeds 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.