Skip to content
Klarhimmel UI

Pricing, split rows

Pricing, split rows previewPricing, split rows preview

Install

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

A pitch on the left (label, heading, lead and two actions) beside plans stacked as rows on the right, each with its name, one line, a short checklist, the price and a…

Import

Import

import Block from '@/components/klarhimmel/blocks/pricing-split-rows';
Also called
  • pricing/split-rows
About
A pitch on the left (label, heading, lead and two actions) beside plans stacked as rows on the right, each with its name, one line, a short checklist, the price and a button. One row can be featured with a badge and 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

A pitch at the left with a label, heading, lead and two actions, beside plans stacked as rows on the right, each with a name, a line, a short checklist, the price and a button. Use pricing-rows when there is no pitch.

Writing for it

- Write two or three short lines for what each plan includes, as plain facts. - Feature one row with a badge and an accent border, and use the badge for a short word such as the most chosen. - Say in the lead what every plan includes and who the choice is for.

Watch out for

On a phone the pitch sits above the rows and each row stacks its price and button under the text. Featuring more than one row removes the point of the badge.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <PricingSplitRows props={{
          "eyebrow": "Section name",
          "title": "Say how the plans are chosen",
          "description": "Say in one or two sentences what every plan includes and who the choice is for.",
          "primary": {
            "label": "Main action",
            "href": "#start"
          },
          "secondary": {
            "label": "Second action",
            "href": "#contact"
          },
          "plans": [
            {
              "name": "First plan",
              "description": "Say who this plan suits in one line.",
              "features": [
                "Say what it includes",
                "Say what it includes"
              ],
              "price": "$00",
              "period": "billing period",
              "badge": "",
              "cta": {
                "label": "Second action",
                "href": "#first"
              },
              "featured": false
            },
            {
              "name": "Second plan",
              "description": "Say who this plan suits in one line.",
              "features": [
                "Say what it includes",
                "Say what it includes"
              ],
              "price": "$00",
              "period": "billing period",
              "badge": "Label",
              "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 are chosen'Text, up to 120 characters.
descriptionstring'Say in one or two sentences what ev…'Text, up to 240 characters.
primaryLink{…}See the type.
secondaryLink{…}Optional; empty is not rendered.
plans{ name, description, features, price, period, badge, cta, featured }[]3 itemsList of 2 to 4. Each item: name, description, features, price, period, badge, cta, featured.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.