Billing settingsPro
Plan, payment method, usage meters, invoices and a prorated plan change.
What's inside
- Prorated plan change dialog
- Usage meters with limits
- Pay failed invoices inline
When to use
- The billing page of a SaaS settings area.
When not to use
- Public pricing: use the pricing section.
Installation
Usage
Import it from @/components/blocks/billing-settings after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { BillingSettings } from "@/components/blocks/billing-settings";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<BillingSettings />
</main>
);
}API reference
BillingSettings
Plan, usage meters, payment method and invoices, with a prorated plan change dialog and inline pay for failed invoices. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through plan options, buttons and invoices |
| ←or→ | Pick a plan or billing cycle |
| Esc | Close the plan change dialog |
Accessibility
- Plans are a labelled radio group.
- The dialog traps focus and returns it on close.
- Usage meters are progress bars with labels and values.
Motion
- Prices roll when the cycle changes; failed invoices morph into paid.
Responsive behavior
- Plan cards stack on phones; invoice rows become two lines.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Compute proration on the server; the block shows the number you pass.
This page as Markdown, for assistants and coding agents:
/blocks/billing-settings/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt