Skip to content
Klarhimmel UI

Contact, booking link

Contact, booking link previewContact, booking link preview

Install

npx shadcn add @klarhimmel/contact-booking-link
DetailsAbout, usage, props and more

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

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.

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.

PropTypeDefaultDescription
eyebrowstring'Name the section'Text, up to 60 characters. Optional; empty is not rendered.
titlestring'Say who they will talk to'Text, up to 120 characters.
descriptionstring'Say in one sentence what the call i…'Text, up to 300 characters. Optional; empty is not rendered.
person{ name, role, photo }{…}Fields: name, role, photo.
lengthstring'00 minutes'Text, up to 30 characters.
lengthLabelstring'Length'Text, up to 30 characters.
whatTitlestring'Say what happens in the call'Text, up to 60 characters.
pointsstring[]3 itemsList of 2 to 4.
linkLink{…}See the type.
newTabbooleanfalseOptional; empty is not rendered.
alt{ label, email }{…}Fields: label, email. Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.