Pricing, featured


Install
npx shadcn add https://ui.klarhimmel.com/r/pricing-featured.jsonDetailsAbout, usage, props and more
One tall featured plan card beside shorter plan cards stacked on its right, under a heading; on a phone the cards stack, the featured one first.
Import
Import
- pricing/featured
- Category
- Plans and prices: tiers, a single plan, a toggle or a comparison table. New project? Set it up once: /get-started/installation.
Notes
When to use it
One tall featured plan card beside shorter plan cards stacked on its right, under a heading. Use pricing-tiers for equal plans in a row.
Writing for it
- Make the featured card the plan most visitors should choose, and name it that way in the plan name. - Keep the shorter plans to a name, a price and a few lines, since they sit stacked. - Write the heading as the choice the visitor makes, not as a slogan.
Watch out for
On a phone the cards stack with the featured one first. Adding a plan changes the height of the right column, so keep the count of shorter cards small.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the kind of plans' | Text, up to 40 characters. Optional; empty is not rendered. |
title | string | 'Say in one line what the visitor is…' | Text, up to 80 characters. |
featured | { name, badge, price, per, lead, text, points, action } | {…} | Fields: name, badge, price, per, lead, text, points, action. |
plans | { name, price, per, description, action }[] | 2 items | List of 1 to 3. Each item: name, price, per, description, action. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |