# Contact, booking link

- **[Sections](/blocks/)**
- **[Contact](/blocks/contact/)**
- **Contact, booking link**

A card for booking a call in an external calendar: the person (photo, name, role), how long it is, what happens in the call, one primary link to the calendar page, and…

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/contact-booking-link
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/contact-booking-link';
  ```

Also called

- contact/booking-link

- **About**: A card for booking a call in an external calendar: the person (photo, name, role), how long it is, what happens in the call, one primary link to the calendar page, and an email for people who prefer that.
- **Category**: A form, a booking panel or office details. The page wires the submit. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A card for booking a call in an outside calendar: who you will meet, how long it takes, what happens, and one button to the calendar page. No slots are drawn. For a form with fixed slots, use `contact-booking`.
- **Writing for it**: - Give the person a name (60, required), a role (80) and a photo. Without a photo src the block draws the initials of the name instead.
- Points are two to four entries of 120 characters; describe what is covered in the call, not how nice it will be.
- The length is free text with its own label, so write '30 minutes' under a label such as 'Length', and keep it exact.
- **Watch out for**: The calendar opens in the same tab unless newTab is true, in which case the link gets rel noopener noreferrer. The alternative email line is dropped when the email is empty, even if its label is filled.

## Pairs well with

- **[Testimonial, quote](/blocks/testimonials/quote)**
- **[FAQ, list](/blocks/faq/accordion)**
- **[Footer, simple](/blocks/footer/simple)**

## 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 ContactBookingLink from '@/components/klarhimmel/blocks/contact-booking-link';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ContactBookingLink props={{
          "eyebrow": "Name the section",
          "title": "Say who they will talk to",
          "description": "Say in one sentence what the call is for and what it is not.",
          "person": {
            "name": "Name a person",
            "role": "Their role and company",
            "photo": {
              "src": "/pictures/avatar-6.svg",
              "alt": "A portrait of a person",
              "srcDark": "/pictures/avatar-6-dark.svg"
            }
          },
          "length": "00 minutes",
          "lengthLabel": "Length",
          "whatTitle": "Say what happens in the call",
          "points": [
            "Say what they tell you about their situation.",
            "Say what you tell them in return, briefly.",
            "Say what they walk away with from the call."
          ],
          "link": {
            "label": "Main action",
            "href": "#calendar"
          },
          "newTab": false,
          "alt": {
            "label": "Offer another way",
            "email": "hello@yourcompany.example"
          }
        }} />
      </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. Optional; empty is not rendered.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters. Optional; empty is not rendered.
- **person**: Fields: name, role, photo.
- **length**: Text, up to 30 characters.
- **lengthLabel**: Text, up to 30 characters.
- **whatTitle**: Text, up to 60 characters.
- **points**: List of 2 to 4.
- **link**: See the type.
- **newTab**: Optional; empty is not rendered.
- **alt**: Fields: label, email. Optional; empty is not rendered.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/contact/booking)

[Next](/blocks/contact/channels)
