# Plan Catalog block

> Plan and pricing catalog editor with tiered plan tiles and status toggles

Plan catalog editor for billing teams to manage tiered plans, pricing, billing intervals, seats, entitlements, add-ons, and active/draft/archived status. ReUI Frame, Badge, Alert; shadcn Item, Button, Switch. For subscription and pricing settings.

- Type: Pro block
- Category: [Billing](https://web.dev.reui.io/blocks/solutions/billing.md)
- Page: https://web.dev.reui.io/blocks/solutions/billing/solution-billing-2
- MCP: `get_block("solution-billing-2")`
- Built with: Alert, Avatar, Badge, Button, Dialog, Field, Frame, Input Group, Item, Switch, Tabs
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Plan tiles with active and public switches, entitlement and add-on lists, and a dialog for monthly and annual price and per seat billing

## Agent notes

- Replace `plans` in data.tsx; each `PlanTile` seeds its Active, Public and price state from it and does not write back
- `CreatePlanDialog` only toasts a drafted plan and takes no callback, so a new plan never appears in `plans`
- `hasUnsavedChanges` starts true and `handleSave` only clears it with a fixed toast; tile edits never set it

## When not to use

- Moving one existing subscription to a new tier with a proration preview: use [Plan Change](https://web.dev.reui.io/blocks/solutions/billing/solution-billing-8.md) (`get_block("solution-billing-8")`)
- A per seat table of plan columns with team size tabs that visitors compare before buying: use [Per-Seat Pricing](https://web.dev.reui.io/blocks/marketing/pricing/pricing-3.md) (`get_block("pricing-3")`)

## Third-party libraries

- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)

## Install

```bash
npx shadcn@latest add @reui/solution-billing-2
```

## About Billing blocks

### When to use

- A back office for billing operators: the invoice ledger, subscriptions, a dunning queue and metered usage
- Plan and discount admin: editing the plan catalog and coupon rules, or moving a subscription to a new tier
- One customer's billing account seen by staff, or an invoice built line by line and then sent

### When not to use

- A public page where visitors compare plan tiers and pick one before signing up: use the [Pricing blocks](https://web.dev.reui.io/blocks/marketing/pricing.md)
- A signed in customer's own settings page showing their plan, usage and invoices: use the [Profile blocks](https://web.dev.reui.io/blocks/application/profile.md)
- A stepped intake flow with no money in it, such as vendor onboarding or team invites: use the [Wizard blocks](https://web.dev.reui.io/blocks/application/wizard.md)

### Agent notes

- Each block sets a `min-h-svh` wrapper with `bg-background`, padding and a max width in page.tsx or its root component; drop it inside an app shell
- No block calls an API: sends, retries, saves and exports update `useState` or fire a sonner `toast`; post to your billing backend from those handlers

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
