Skip to content
Klarhimmel UI

Booking, pinned header

Booking, pinned header previewBooking, pinned header preview

Install

npx shadcn add @klarhimmel/booking-pinned-header
DetailsAbout, usage, props and more

A heading column (label, heading, lead) that stays pinned at the left while the right column scrolls a picture with a caption and one booking card: the item with badge…

Import

Import

import Block from '@/components/klarhimmel/blocks/booking-pinned-header';
Also called
  • booking/pinned-header
About
A heading column (label, heading, lead) that stays pinned at the left while the right column scrolls a picture with a caption and one booking card: the item with badge, description, price and checklist, day and time pills, a short…
Category
A way to ask for a time or a table: a short form beside what to expect. New project? Set it up once: /get-started/installation.

Notes

When to use it

Pick it for a booking page where the pitch should stay in view while a long right column scrolls: a picture, then one card holding the offer, its price, day and time pills, a short summary and the form. When the form is the only thing to fill in use booking-offset-form, and for plans with prices only use pricing-split-rows.

Writing for it

- The title holds 120 characters and the lead 240; keep the lead to two lines, since it stays beside the card the whole way. - Choice groups take up to three rows of two to eight options of 24 characters each; set mono on a row of times. The checklist takes five lines of 80. - Form fields take one to five entries, labels of 60. The question and the legal line are optional and drop out when emptied.

Watch out for

The heading column pins only when the section is wide; on a phone it simply sits above. A card with every part filled grows very tall, so leave out the question, tags or links you do not need rather than shortening each.

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 BookingPinnedHeader, { spec } from '@/components/klarhimmel/blocks/booking-pinned-header';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <BookingPinnedHeader props={spec.defaults} />
      </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 visitor can book here'Text, up to 120 characters.
descriptionstring'Say in one or two sentences what ha…'Text, up to 240 characters.
mediaMedia{…}See the type.
captionstring'Say in a line what the picture show…'Text, up to 160 characters.
itemTitlestring'Name the thing booked'Text, up to 80 characters.
itemNamestring'Give its short name'Text, up to 60 characters.
badgestring'Label'Text, up to 24 characters.
itemDescriptionstring'Describe the offer and name what th…'Text, up to 240 characters.
pricestring'$00'Text, up to 16 characters.
periodstring'billing period'Text, up to 60 characters.
featuresstring[]3 itemsList of up to 5.
choicesTitlestring'Say what the visitor picks'Text, up to 60 characters.
choices{ label, options, mono }[]2 itemsList of up to 3. Each item: label, options, mono (optional).
summary{ icon, title, note }[]2 itemsList of up to 3. Each item: icon ('calendar' | 'place'), title, note (optional).
fields{ label, name, placeholder, hint, wide }[]3 itemsList of 1 to 5. Each item: label, name (optional), placeholder (optional), hint (optional), wide (optional).
submitstring'Main action'Text, up to 40 characters.
secondaryLink{…}Optional; empty is not rendered.
tagsstring[]2 itemsList of up to 4.
rating{ value, label }{…}Fields: value, label. Optional; empty is not rendered.
faq{ question, answer }{…}Fields: question, answer. Optional; empty is not rendered.
linksLink[]2 itemsList of up to 3.
legalstring'Say in one line what the details ar…'Text, up to 200 characters.
actionstring''Text, up to 300 characters. Optional; empty is not rendered.
method'post' | 'get'-One of 'post', 'get'. Optional; empty is not rendered.
hidden{ }-Optional; empty is not rendered.
captchaboolean-Optional; empty is not rendered.
captchaSitekeystring-Text, up to 100 characters. Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.