# Booking, alternating rows

- **[Sections](/blocks/)**
- **[Booking](/blocks/booking/)**
- **Booking, alternating rows**

A centred heading over rows in cards, each a picture beside text with the picture alternating sides.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/booking-alternating-rows
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/booking-alternating-rows';
  ```

Also called

- booking/alternating-rows

- **About**: A centred heading over rows in cards, each a picture beside text with the picture alternating sides. A row can be an event with points, time and place and buttons, an offer with a tag, price and button, or a small form.
- **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 when a visitor can book different kinds of things, shown as cards with a picture alternating sides: an event with its points and buttons, an offer with a price, or a small form. For one booking form choose `booking-offset-form`.
- **Writing for it**: - Title up to 100 characters, lead up to 240; one to five rows, each with a heading up to 80 characters and any of: a date line, a tag, points up to 80 characters, a time and place, a price, up to three form fields, up to two buttons and a quiet link.
- Give a form row a send label, or its fields are not drawn.
- **Watch out for**: Rows that mix an event, an offer and a form read best when each has one clear purpose. A row with more than a form or a button pair gets tall; split it into two rows.

## Pairs well with

- **[FAQ, list](/blocks/faq/accordion)**
- **[Call to action, band](/blocks/cta/banner)**
- **[Testimonials, grid](/blocks/testimonials/grid)**

## 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 BookingAlternatingRows from '@/components/klarhimmel/blocks/booking-alternating-rows';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <BookingAlternatingRows props={{
          "eyebrow": "Name the section",
          "title": "Say what a visitor can book",
          "description": "Say in one line how booking works.",
          "rows": [
            {
              "media": {
                "src": "/pictures/photo-wood3.avif",
                "alt": "A workbench with hand tools on the wall"
              },
              "caption": "Say what the picture shows.",
              "eyebrow": "Date",
              "title": "Name the first thing to book",
              "description": "Say in one line what the visitor gets.",
              "points": [
                "Name one thing included"
              ],
              "when": "Start to end",
              "where": "Give the place",
              "primary": {
                "label": "Main action",
                "href": "#book"
              },
              "secondary": {
                "label": "Second action",
                "href": "#more"
              }
            }
          ]
        }} />
      </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 100 characters.
- **description**: Text, up to 240 characters.
- **rows**: List of 1 to 5. Each item: media, caption, rating (optional), eyebrow (optional), tag (optional), title, name (optional), description, points (optional), when (optional), where (optional), price (optional), priceNote (optional), fields (optional), submit (optional), legal (optional), primary (optional), secondary (optional), textLink (optional).
- **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/footer/wordmark)

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