A complete billing area with plan overview, usage meters and a spend chart, plan picker with monthly or annual pricing, seat stepper, promo codes and a live summary, a comparison table, filterable invoices with retry, cards on file and a cancel flow.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { BillingPlansScreen } from "@/components/hyperblur-pro/billing-plans-screen"
<BillingPlansScreen accent="#10b981" currentPlan="pro" />| Prop | Type | Default | Description |
|---|---|---|---|
| accent | string | "#10b981" | Accent color for the selected plan, buttons, meters and charts. |
| company | string | "Halcyon Robotics" | Customer name shown in the header and dialogs. |
| currency | string | "$" | Currency symbol for every price. |
| plans | BillingPlan[] | four sample plans | Plans with monthly price (null for custom), included seats, seat price, features and popular flag. |
| currentPlan | string | "pro" | Id of the active plan. |
| defaultCycle | "monthly" | "annual" | "monthly" | Billing cycle of the active subscription and the initial toggle state. |
| defaultSeats | number | 9 | Seats on the active subscription. |
| invoices | BillingInvoice[] | sample invoices | Invoice history with number, ISO date, amount, status and plan label. |
| cards | BillingCard[] | sample cards | Cards on file. Only the last four digits are stored. |
| annualDiscount | number | 0.2 | Discount applied to annual billing, from 0 to 1. |
| defaultTab | "overview" | "plans" | "invoices" | "payment" | "overview" | Tab that opens first. |
| onPlanChange | (plan: string, cycle: BillingCycle, seats: number) => void | Called after the user confirms a plan change. |
Source code is included in Pro and above