Skip to content
Hazine

Pricing Table

Responsive grid of plan cards, each with a name, price, short pitch, feature list and call to action, and one tier marked as recommended. The default section for a simple three tier product.

How it differs. Baseline of the family: independent, equal weight cards in a grid, each with its own full feature list and no shared controls between cards.

pnpm dlx shadcn@latest add @hazine/pricing-table

Adds 1 file, 3 shadcn primitives (badge, button, card), 1 Hazine item (@hazine/heading), and 1 package (lucide-react).

First time? Add the registry to components.json
{
  "registries": {
    "@hazine": "https://api.hazine.dev/r/{name}.json"
  }
}

Needed once per project. Items resolve each other through the @hazine namespace.

Props6

title
string = "Plans that follow your headcount"
tiers
PricingTier[] = DEFAULT_TIERS
currency
string = "USD"
ISO 4217 code.
locale
string = "en-US"
recommendedLabel
string = "Recommended"
Badge text on the recommended tier.
headingLevel
HeadingLevel = 2

Also accepts every prop of Omit<React.ComponentProps<"section">, "title">.

Accessibility

Pattern
Pricing structure, Landmarks and headings
Keyboard
Nothing to operate. The item has no focusable parts.
Screen reader

A section labelled by its heading. Plans are list items, each with its own heading, and every feature is prefixed with hidden text that says it is included.

Reduced motion
No motion. Colour transitions only.
Checked
Not checked yet. Automated results appear here once CI has run.

Dependencies5

  • badge
  • button
  • card
  • @hazine/heading
  • lucide-react

Filled chips are registry items the CLI adds for you. Outlined chips are npm packages.

Tokens shipped0

None. The item is styled by the tokens your theme already has.

Other takes on this1

The same question answered with a different structure.

  • plan cards

    Unequal density by design: one plan is shown in full, the others share a rail in the same frame and are reduced to a signed price delta and one line of difference against it.

    shadcn add @hazine/plan-cards-featured-with-compact-alternatives

    Depends on badge, button, @hazine/heading, lucide-react

More in Pricing