Pricing, figure


Install
npx shadcn add https://ui.klarhimmel.com/r/pricing-figure.jsonDetailsAbout, usage, props and more
One plan on a plain light section, all centred: a small eyebrow, a heading, the price as a giant display figure that fills most of the width, one line of terms and one…
Import
Import
- pricing/figure
- About
- One plan on a plain light section, all centred: a small eyebrow, a heading, the price as a giant display figure that fills most of the width, one line of terms and one filled action.
- 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 plan on a plain light section, all centred: an eyebrow, a heading, the price as a giant display figure, a line of terms and one filled action. Use pricing-bar for a slimmer band.
Writing for it
- Write the price as one short string. It is drawn as wide as the section allows. - Use the line of terms for the condition that matters most, such as the billing period. - Keep the heading to what the plan is, and let the figure do the rest.
Watch out for
The figure scales with the section width and stays on one line on a phone, so a long price string shrinks until it is hard to read. Keep it to a few characters.
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 plan' | Text, up to 30 characters. |
title | string | 'Say in a short line what the plan g…' | Text, up to 80 characters. |
price | string | '00 000 kr' | Text, up to 12 characters. |
terms | string | 'Say the billing period, what is exc…' | Text, up to 160 characters. |
link | Link | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |