Pricing Card One
A simple pricing plan card with icon, price, features, and CTA.
Supports tones, “Recommended” badge, and button link/onClick.
Example
Basic
the starter choise
$5/month
- Lorem ipsum
- Lorem set
- Lorem ipsum dolor.
- Lorem ipsum dolor sit amet, consectetur.
- Only lorem
- Lorem ipsum dolor.
- Lorem ipsum.
Pro
the starter choise
$15/month
- Lorem ipsum
- Lorem set
- Lorem ipsum dolor.
- Lorem ipsum dolor sit amet, consectetur.
- Only lorem
- Lorem ipsum dolor.
- Lorem ipsum.
Installation
npx shadcn-extras@latest add pricing-card-one
Props
Prop | Type | Default | Description |
---|---|---|---|
icon | ReactNode | — | Big icon above title. |
name | string | — | Plan name. |
subtitle | string | 'the starter choice' | Small subtitle. |
price | number | string | — | Either a number (uses currency ) or a preformatted string. |
currency | string | '$' | Prefix used when price is a number. |
periodLabel | string | '/month' | Shown next to price. |
recommended | boolean | false | Shows badge and uses filled CTA style. |
recommendedLabel | string | 'Recommended' | Badge text. |
features | { label: ReactNode; included?: boolean }[] | [] | List items; included defaults to true . |
cta | AnchorOrButton & { label?: string } | — | Pass href or onClick . |
tone | 'indigo' | 'blue' | 'emerald' | 'zinc' | 'blue' | Accent color. |
variant | 'outline' | 'elevated' | 'soft' | 'outline' | Surface style. |
*ClassName | string | — | Slot overrides for fine styling control. |