Skip to content
Klarhimmel UI

Pricing, plan rows

Pricing, plan rows previewPricing, plan rows preview

Install

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

Plans as full-width rows instead of cards: name and description, up to three highlights as chips, the price, and a button on one line.

Import

Import

import Block from '@/components/klarhimmel/blocks/pricing-rows';
Also called
  • pricing/rows
About
Plans as full-width rows instead of cards: name and description, up to three highlights as chips, the price, and a button on one line. Easy to scan down, and room for four or more plans. One row can be marked 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

Plans as full-width rows with name, up to three chips, price and a button on one line, scannable from top to bottom. Use it for four plans or more; pricing-tiers suits three cards side by side.

Writing for it

- Highlights hold 40 characters each and at most three per plan. They become chips, so write facts like '10 seats' and not sentences. - Price is required at 16 characters, and the period (30 characters) goes after it. Use the period for 'per month' or 'one time'. - Mark one plan as featured. Its row gets the accent look and a primary button, while the others use a secondary one.

Watch out for

Several plans can technically be flagged featured, and each gets the accent styling, so the emphasis stops meaning anything. The note under the list holds 160 characters and applies to all rows, such as tax or billing terms.

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 PricingRows from '@/components/klarhimmel/blocks/pricing-rows';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <PricingRows props={{
          "eyebrow": "Section name",
          "title": "Say how the plans are chosen",
          "description": "Say in one sentence what every plan includes and what the choice is about.",
          "plans": [
            {
              "name": "First plan",
              "description": "Say who this plan suits in one line",
              "highlights": [
                "A highlight",
                "A highlight"
              ],
              "price": "$00",
              "period": "billing period",
              "cta": {
                "label": "Main action",
                "href": "#start"
              },
              "featured": false
            },
            {
              "name": "Second plan",
              "description": "Say who this plan suits in one line",
              "highlights": [
                "A highlight",
                "A highlight"
              ],
              "price": "$00",
              "period": "billing period",
              "cta": {
                "label": "Main action",
                "href": "#start"
              },
              "featured": true
            }
          ],
          "note": "Say what the prices include and how billing works."
        }} />
      </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 are chosen'Text, up to 120 characters.
descriptionstring'Say in one sentence what every plan…'Text, up to 300 characters.
plans{ name, description, highlights, price, period, cta, featured }[]3 itemsList of 2 to 4. Each item: name, description, highlights, price, period, cta, featured.
notestring'Say what the prices include and how…'Text, up to 160 characters.
look'chips' | 'checklist' | 'ruled'-One of 'chips', 'checklist', 'ruled'. Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.