Billing Setup Fee Breakdown
A billing summary block that keeps one-time implementation costs, like SSO configuration or a data migration, visually separate from the recurring annual subscription. Each section lists its own line items and subtotal, followed by an optional tax row and a highlighted total due today. Built for enterprise checkout flows and custom plan quotes where the difference between a one-time and a recurring charge needs to be obvious.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/billing-setup-fee-breakdown.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/billing/billing123.tsx instead.
Usage
The file also exports billing123Demo, 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 { Billing123, billing123Demo } from "@/components/blocks/billing/billing123"; export default function Page() { return <Billing123 {...billing123Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Setup & subscription summary" | Heading shown at the top. |
| description | string | none | Optional note under the heading. |
| setupLabel | string | "One-time setup fee" | Label for the one-time fee section. |
| setupItems | FeeLineItem[] | none | One-time line items, for example onboarding or data migration. |
| setupSubtotal | string | none | Pre-formatted subtotal for the one-time section, shown as-is. |
| recurringLabel | string | "Annual subscription" | Label for the recurring section. |
| recurringItems | FeeLineItem[] | none | Recurring line items, for example seats and add-ons. |
| recurringSubtotal | string | none | Pre-formatted subtotal for the recurring section, shown as-is. |
| taxLabel | string | "Estimated tax" | Label for the tax row. |
| taxAmount | string | none | Pre-formatted tax amount. The tax row is omitted entirely when this is not passed. |
| totalLabel | string | "Total due today" | Label for the highlighted total row. |
| totalDueToday | string | none | Pre-formatted grand total shown in the highlighted box at the bottom. |
| className | string | none | Extra classes for the outer container. |
Types
interface FeeLineItem { label: string; amount: string; description?: string; }
Behavior notes
- All amounts, including both subtotals, the tax row, and the grand total, are passed in as pre-formatted strings rather than numbers, so the component never sums or formats currency itself.
- The tax row only renders when taxAmount is provided, so quotes without tax collapse cleanly.
- Line items support an optional description shown as a smaller line underneath the label, useful for explaining what a fee covers.
- Setup and recurring sections use identical layout and styling, reinforcing that they're two separate totals rather than one combined list.
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.