Billing Subscription Tier Benefits
A plan comparison section that lays tiers out as cards with a price, a short description, and a checkmarked list of what's included. One tier can be flagged as recommended, which adds a ring and a badge to its card. Each card ends in its own call-to-action button. Built as a static display for pricing and upgrade pages, not a picker, use the Billing Plan Selector block instead if you need the cards to be selectable.
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-subscription-tier-benefits.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/billing/billing135.tsx instead.
Usage
The file also exports billing135Demo, 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 { Billing135, billing135Demo } from "@/components/blocks/billing/billing135"; export default function Page() { return <Billing135 {...billing135Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | none | Optional heading above the tier cards. |
| description | string | none | Optional supporting text below the heading. |
| tiers | TierBenefit[] | none | Tiers rendered as cards. Three tiers render in a 3-column grid, anything else falls back to 2 columns. |
| className | string | none | Extra classes for the outer container. |
Types
interface TierBenefit { name: string; price: string; interval?: string; description?: string; recommended?: boolean; benefits: string[]; ctaLabel?: string; ctaHref?: string; }
Behavior notes
- This is a static comparison, not a picker: no click handler changes state, each card's CTA is a plain link to ctaHref.
- A tier with recommended set true gets a primary ring around its card and a "Most popular" badge next to its name, plus its CTA button switches from outline to the filled default variant.
- The grid switches between a 3-column and 2-column layout automatically based on tiers.length === 3, there's no separate prop to force the column count.
- Prices and intervals are plain strings so currency formatting, symbol placement, and localization are entirely up to the caller.
- Benefit lists have no maximum length or truncation, a very long list just makes that card taller than its neighbors since the grid rows aren't equal-height locked.
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.