# Booking, pinned header

- **[Sections](/blocks/)**
- **[Booking](/blocks/booking/)**
- **Booking, pinned header**

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

- **CLI**

  ```
  npx shadcn add @klarhimmel/booking-pinned-header
  ```
- **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.

## Pairs well with

- **[Pricing, split rows](/blocks/pricing/split-rows)**
- **[Contact, form](/blocks/contact/form)**
- **[FAQ, list](/blocks/faq/accordion)**

## 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.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 240 characters.
- **media**: See the type.
- **caption**: Text, up to 160 characters.
- **itemTitle**: Text, up to 80 characters.
- **itemName**: Text, up to 60 characters.
- **badge**: Text, up to 24 characters.
- **itemDescription**: Text, up to 240 characters.
- **price**: Text, up to 16 characters.
- **period**: Text, up to 60 characters.
- **features**: List of up to 5.
- **choicesTitle**: Text, up to 60 characters.
- **choices**: List of up to 3. Each item: label, options, mono (optional).
- **summary**: List of up to 3. Each item: icon ('calendar' | 'place'), title, note (optional).
- **fields**: List of 1 to 5. Each item: label, name (optional), placeholder (optional), hint (optional), wide (optional).
- **submit**: Text, up to 40 characters.
- **secondary**: Optional; empty is not rendered.
- **tags**: List of up to 4.
- **rating**: Fields: value, label. Optional; empty is not rendered.
- **faq**: Fields: question, answer. Optional; empty is not rendered.
- **links**: List of up to 3.
- **legal**: Text, up to 200 characters.
- **action**: Text, up to 300 characters. Optional; empty is not rendered.
- **method**: One of 'post', 'get'. Optional; empty is not rendered.
- **hidden**: Optional; empty is not rendered.
- **captcha**: Optional; empty is not rendered.
- **captchaSitekey**: Text, up to 100 characters. Optional; empty is not rendered.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/booking/offset-form)

[Next](/blocks/products/action-mosaic)
