Pricing Table

A three column pricing section that renders a PlanCard for each tier you pass in, stacking on mobile. Mark one plan as highlighted to steer visitors toward it.

src/registry/ui/pricing-table.tsx/r/pricing-table.json

Installation#

bash
npx shadcn@latest add @minidev/pricing-table

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/pricing-table.json

Usage#

tsx
import { PricingTable } from "@/components/ui/pricing-table"

export function Example() {
  return (
    <PricingTable className="w-full" plans={[
      { name: "Free", price: "$0", features: ["10 components","Community"], cta: "Start" },
      { name: "Pro", price: "$29", features: ["All components","Priority"], highlighted: true },
      { name: "Team", price: "$99", features: ["Seats","SSO","Audit"] },
    ]} />
  )
}

API reference#

PricingTable props
PropTypeDefault
plansPlan[]SAMPLE_PLANS
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All pricing and billing components

Learn more