Skip to content
Klarhimmel UI

Pricing, aside tiers

Pricing, aside tiers previewPricing, aside tiers preview

Install

npx shadcn add https://ui.klarhimmel.com/r/pricing-aside-tiers.json
DetailsAbout, usage, props and more

A narrow headline column (label, heading, lead and a paragraph) beside three plan cards in one row, each with a badge, name, one line, price, checklist and a button at…

Import

Import

import Block from '@/components/klarhimmel/blocks/pricing-aside-tiers';
Also called
  • pricing/aside-tiers
About
A narrow headline column (label, heading, lead and a paragraph) beside three plan cards in one row, each with a badge, name, one line, price, checklist and a button at the foot; the middle plan is featured with an accent border.
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

Pick it when the plans are few (two or three) and the headline should sit as a narrow column beside them, so the whole decision shows in one row on a wide screen. Pick pricing-tiers when the heading sits above the cards, or pricing-split-rows when plans read better as stacked rows beside a pitch.

Writing for it

- Title up to 120 characters, lead 160, note 240; keep the lead to one line. - Plan name 40, one line 120, price 16, up to five checklist lines of 60. - Mark one plan featured, normally the middle one, so it gets the accent border and a filled button.

Watch out for

Four columns get tight below about 1000 px of block width, so keep names, prices and checklist lines short, and do not add a fourth plan; with only two plans the row leaves an empty column.

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 PricingAsideTiers from '@/components/klarhimmel/blocks/pricing-aside-tiers';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <PricingAsideTiers props={{
          "eyebrow": "Section name",
          "title": "Say how the plans differ",
          "description": "Say in one line who the plans are for.",
          "note": "Say in a sentence what every plan includes and how to choose.",
          "plans": [
            {
              "badge": "Label",
              "name": "First plan",
              "description": "Say who this plan suits in one line.",
              "price": "$00",
              "period": "billing period",
              "features": [
                "Say what it includes",
                "Say what it includes"
              ],
              "cta": {
                "label": "Second action",
                "href": "#first"
              },
              "featured": false
            },
            {
              "badge": "Label",
              "name": "Second plan",
              "description": "Say who this plan suits in one line.",
              "price": "$00",
              "period": "billing period",
              "features": [
                "Say what it includes",
                "Say what it includes"
              ],
              "cta": {
                "label": "Main action",
                "href": "#second"
              },
              "featured": true
            }
          ]
        }} />
      </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 how the plans differ'Text, up to 120 characters.
descriptionstring'Say in one line who the plans are f…'Text, up to 160 characters.
notestring'Say in a sentence what every plan i…'Text, up to 240 characters.
plans{ badge, name, description, price, period, features, cta, featured }[]3 itemsList of 2 to 3. Each item: badge, name, description, price, period, features, cta, featured.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.