Ballmac UI home

Billing 1: plan, usage and invoices

A billing page: current plan and monthly cost, usage meters that turn amber near the limit, the card on file with an update dialog (formatted, validated), the billing contact and an invoice list with status and downloads.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/billing-1

Usage

Example: billing-1-demo.tsx
import { Billing1 } from "@/components/ballmac/blocks/billing-1/billing-1"

export default function Billing1Demo() {
  return <Billing1 />
}

Dependencies

Use with AI

The billing screen. Pass plan, usage=[{ label, used, limit?, unit? }], card, contact, invoices, currency and handlers onChangePlan / onUpdateCard (throw to show an error). Real card numbers must go to your payment provider's hosted fields, not through this form. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Billing 1: plan, usage and invoices (@ballmac/billing-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Subscription management pages
  • Usage-based or seat-based products

Not for

  • Choosing between plans (use billing-2 or pricing-2)

Registry JSON: https://ui.ballmac.com/r/billing-1.json

Free to use in personal and commercial projects.