Billing Saved Address List
A billing address list for accounts with multiple legal entities or regional offices. Each address renders as a card with a default badge when applicable, an edit link, and a set-as-default link on any address that isn't already the default. Built for enterprise billing settings and multi-office SaaS accounts where invoices need to be generated against the right entity.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge, button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/billing-saved-address-list.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/billing/billing119.tsx instead.
Usage
The file also exports billing119Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Billing119, billing119Demo } from "@/components/blocks/billing/billing119"; export default function Page() { return <Billing119 {...billing119Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Billing addresses" | Heading shown above the list. |
| description | string | none | Optional supporting text under the heading. |
| addresses | BillingAddress[] | none | Addresses rendered as-is, in the order given. |
| addAddressHref | string | none | When set, shows an "Add address" button linking here in the header. |
| addAddressLabel | string | "Add address" | Label on the add-address button. |
| className | string | none | Extra classes for the outer wrapper. |
Types
interface BillingAddress { id: string; label?: string; line1: string; line2?: string; city: string; region?: string; postalCode: string; country: string; isDefault: boolean; editHref: string; setDefaultHref?: string; }
Behavior notes
- Addresses are rendered in the order passed in with no sorting, put the default address first yourself if that's the order you want.
- A Default badge appears only when isDefault is true; the Set as default link is only rendered when isDefault is false and setDefaultHref is provided.
- Edit and Set as default are next/link elements pointing at editHref and setDefaultHref, not buttons with onClick handlers, so they work with direct URLs out of the box.
- The address fields (line1, line2, city, region, postalCode, country) are generic strings, no country-specific formatting or field reordering is applied.
- The header's Add address button only renders when addAddressHref is passed; omit it to hide the action entirely.
Frequently asked questions
More Billing Blocks
View all →Billing Invoice List
Invoice history table with status badges, formatted amounts, and a per-row download link, built with shadcn/ui and Tailwind CSS.
Billing Failed Payment Alert
High-contrast failed-payment alert with a message, a retry button, and an optional update-payment-method button, built with shadcn/ui and Tailwind CSS.
Billing Credit Balance
Compact credit balance card with a large total, an optional purchased-versus-promotional breakdown, a low-balance notice, and a top-up button.
Billing Payment Methods
A saved payment method list for React and Next.js with brand icons, a default badge, near-expiry warnings, and remove/set-default actions per row.
Billing Add Card
A card entry form for React and Next.js with auto-formatted fields, internal brand detection, and per-field validation feedback built with shadcn/ui and Tailwind CSS.
Billing Coupon Code
An inline promo code input for React and Next.js with a simulated loading state, an applied summary showing the discount amount, and an invalid-code message.