Skip to content
Klarhimmel UI

Pricing, single plan

Pricing, single plan previewPricing, single plan preview

Install

npx shadcn add @klarhimmel/pricing-single
DetailsAbout, usage, props and more

One plan with a large price, a button and a checklist of what is included.

Import

Import

import Block from '@/components/klarhimmel/blocks/pricing-single';
Also called
  • 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.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import PricingSingle from '@/components/klarhimmel/blocks/pricing-single';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <PricingSingle props={{
          "eyebrow": "Section name",
          "title": "Say what the one plan includes",
          "description": "Say in one or two sentences what the plan includes and who pays for what.",
          "name": "Name the plan",
          "price": "$00",
          "period": "per unit, per period",
          "includesTitle": "Say what the list holds",
          "features": [
            "First included feature",
            "Second included feature",
            "Third included feature",
            "Fourth included feature",
            "Fifth included feature",
            "Sixth included feature",
            "Seventh included feature",
            "Eighth included feature"
          ],
          "cta": {
            "label": "Main action",
            "href": "#trial"
          },
          "note": "Say what the trial or start involves"
        }} />
      </BlockSurface>
    </Theme>
  );
}

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.

PropTypeDefaultDescription
eyebrowstring'Section name'Text, up to 60 characters.
titlestring'Say what the one plan includes'Text, up to 120 characters.
descriptionstring'Say in one or two sentences what th…'Text, up to 300 characters.
namestring'Name the plan'Text, up to 40 characters.
pricestring'$00'Text, up to 16 characters.
periodstring'per unit, per period'Text, up to 40 characters.
includesTitlestring'Say what the list holds'Text, up to 60 characters.
featuresstring[]8 itemsList of 1 to 10.
ctaLink{…}See the type.
notestring'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.
badgestring-Text, up to 24 characters. Optional; empty is not rendered.
largePriceboolean-Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.