Skip to content
Klarhimmel UI

Contact, bands

Contact, bands previewContact, bands preview

Install

npx shadcn add https://ui.klarhimmel.com/r/contact-bands.json
DetailsAbout, usage, props and more

Three full-width bands one after another: a header (label, heading and lead), a tinted band with a picture and caption beside a card of badge, place, address, contact…

Import

Import

import Block from '@/components/klarhimmel/blocks/contact-bands';
Also called
  • contact/bands
About
Three full-width bands one after another: a header (label, heading and lead), a tinted band with a picture and caption beside a card of badge, place, address, contact links and three actions, then a band with a short heading beside…
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

Pick it for a location and hours page that reads as three stacked bands: a header, then a tinted band with a picture beside a card of address and contact, then opening hours as ruled rows. For one office only choose contact-map; for several places choose contact-offices.

Writing for it

- Title up to 120 characters, lead up to 240, place name 80, address 100. - Hours take one to seven rows with a label of 40 and a time of 40. - Phone and email are links with a label of 40; leave a label empty to drop an action.

Watch out for

The card carries five contact items, so cut the three actions to one or two when the address and number already say enough. Write times in one format across all rows so the right column lines up.

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 ContactBands from '@/components/klarhimmel/blocks/contact-bands';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ContactBands props={{
          "eyebrow": "Section name",
          "title": "Say where and when the visitor can find you",
          "description": "Say in one or two sentences what the visitor can do here.",
          "media": {
            "src": "/pictures/photo-barber1.avif",
            "alt": "An empty barbershop with chairs and mirrors"
          },
          "caption": "Say what the picture shows",
          "badge": "Label",
          "placeTitle": "Name the place",
          "address": "Give the full address",
          "phone": {
            "label": "Give the number",
            "href": "#phone"
          },
          "email": {
            "label": "Give the address",
            "href": "#email"
          },
          "primary": {
            "label": "Main action",
            "href": "#primary"
          },
          "secondary": {
            "label": "Second action",
            "href": "#secondary"
          },
          "tertiary": {
            "label": "Third action",
            "href": "#tertiary"
          },
          "hoursTitle": "Say what the times below cover",
          "hoursDescription": "Say in one line what the visitor should know before coming.",
          "hours": [
            {
              "label": "Name the first period",
              "time": "Give the times"
            },
            {
              "label": "Name the second period",
              "time": "Give the times"
            }
          ],
          "note": "Say what changes the times, in one line"
        }} />
      </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 where and when the visitor can …'Text, up to 120 characters.
descriptionstring'Say in one or two sentences what th…'Text, up to 240 characters.
mediaMedia{…}See the type.
captionstring'Say what the picture shows'Text, up to 100 characters.
badgestring'Label'Text, up to 24 characters.
placeTitlestring'Name the place'Text, up to 80 characters.
addressstring'Give the full address'Text, up to 100 characters.
phoneLink{…}See the type.
emailLink{…}See the type.
primaryLink{…}See the type.
secondaryLink{…}See the type.
tertiaryLink{…}See the type.
hoursTitlestring'Say what the times below cover'Text, up to 80 characters.
hoursDescriptionstring'Say in one line what the visitor sh…'Text, up to 200 characters.
hours{ label, time }[]3 itemsList of 1 to 7. Each item: label, time.
notestring'Say what changes the times, in one …'Text, up to 160 characters.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.