Pricing, single plan


Install
npx shadcn add @klarhimmel/pricing-singleDetailsAbout, usage, props and more
One plan with a large price, a button and a checklist of what is included.
Import
Import
- pricing/single
- 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 with a large price, a button and a checklist of what is included. If you have more than one option choose pricing-tiers, and for work priced by use pricing-usage.
Writing for it
- Price is limited to 16 characters, so '299 kr' fits, and the period (40 characters) after it says 'per month, billed yearly' or similar. - The checklist takes one to ten items of 80 characters. Lead with what the buyer gets and not the plan's internal name for it. - The note under the button (120 characters) is for the objection that stops a click, like a cancellation term or a trial.
Watch out for
There is no featured or badge field because the single card is always the emphasised box. The includes title (60 characters) is a real h3, so empty it only if you accept a checklist with no heading.
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 | 'Section name' | Text, up to 60 characters. |
title | string | 'Say what the one plan includes' | Text, up to 120 characters. |
description | string | 'Say in one or two sentences what th…' | Text, up to 300 characters. |
name | string | 'Name the plan' | Text, up to 40 characters. |
price | string | '$00' | Text, up to 16 characters. |
period | string | 'per unit, per period' | Text, up to 40 characters. |
includesTitle | string | 'Say what the list holds' | Text, up to 60 characters. |
features | string[] | 8 items | List of 1 to 10. |
cta | Link | {…} | See the type. |
note | string | 'Say what the trial or start involves' | Text, up to 120 characters. |
layout | 'wide' | 'narrow' | 'column' | - | One of 'wide', 'narrow', 'column'. Optional; empty is not rendered. |
titleSize | 'title' | 'heading' | - | One of 'title', 'heading'. Optional; empty is not rendered. |
badge | string | - | Text, up to 24 characters. Optional; empty is not rendered. |
largePrice | boolean | - | Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |