Ballmac UI home

Billing Card

A subscription summary with plan and price, status, next charge, payment method, seat usage and recent invoices, including failed-payment and trial states.

Current plan

Team

Active

$49/ month

Renews

Oct 28, 2026

Seats

8 of 10 used

Payment method

Visa •••• 4242Exp 08/28

Recent invoices

  • Sep 28, 2026$49.00Paid
  • Aug 28, 2026$49.00Paid
  • Jul 28, 2026$49.00Paid

Installation

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

Usage

import { BillingCard } from "@/components/ballmac/billing-card"

The full example is in the Code tab above.

Examples

Payment failed and trial

Current plan

Team

Payment failed

$49/ month

Retrying

Oct 5, 2026

Payment method

Mastercard •••• 0087Exp 01/26

Recent invoices

  • Sep 28, 2026$49.00Failed

Current plan

Pro trial

Trial

$0/ month

Trial ends

Oct 12, 2026

API reference

PropTypeDefault
plan*BillingPlan—
paymentMethodBillingPaymentMethod—
invoices

Recent invoices, newest first. The first three are shown.

BillingInvoice[][]
onChangePlan

Adds a "Change plan" button and calls this when pressed.

() => void—
onUpdatePayment

Adds an "Update" button on the payment method row.

() => void—
onCancel

Adds a "Cancel subscription" text button.

() => void—
locale

Locale for dates and money. Fixed by default so server and browser match.

string—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Screen readersDetails are a description list; a failed payment is announced as an alert
TabChange plan, Update, Cancel and invoice downloads are real buttons and links

Use with AI

plan {name,price,interval,status,renewsOn,seats}, paymentMethod, invoices[], and onChangePlan / onUpdatePayment / onCancel. Dates are ISO strings formatted in UTC. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Billing Card (@ballmac/billing-card) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Account billing pages
  • Showing subscription state in settings

Not for

  • Choosing a plan; use plan-selector
  • A line-item invoice table; use table

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

Credits

Free to use in personal and commercial projects.