Skip to content
Klarhimmel UI

Contact, area served

Contact, area served previewContact, area served preview

Install

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

Where a business that travels to its customers works: a heading, how far and how fast they come, the town they work from and one call button on one side, the places…

Import

Import

import Block from '@/components/klarhimmel/blocks/contact-area';
Also called
  • contact/area
About
Where a business that travels to its customers works: a heading, how far and how fast they come, the town they work from and one call button on one side, the places they cover as a ruled list (with a note per place) on the other.
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

For a business that goes to its customers (trades, cleaners, mobile services, delivery): how far they travel, where they work from and the places they cover, with one call button. No map picture needed. For a shop people visit use contact-map; for several offices, contact-offices.

Writing for it

- Name the places as the business's own page does, up to 24, each 40 characters. A note (60) holds only what differs for one place: a day, a call-out fee. - The description says distance and speed in their words ('within 20 miles, same day where we can'); never promise a time they did not. - The base is a town or district, never a street address. The action is usually their phone as a tel: link.

Watch out for

Up to six places stand in one column; seven or more flow into two columns, three in a very wide container when no place has a note. Base, description, notes, the closing note and the button each vanish when empty.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ContactArea props={{
          "eyebrow": "Name the section",
          "title": "Say where you work and how far",
          "description": "Say in one sentence how far you travel and how fast you can arrive.",
          "base": "Name the town you work from",
          "areas": [
            {
              "name": "First place",
              "note": ""
            },
            {
              "name": "Second place",
              "note": ""
            },
            {
              "name": "Third place",
              "note": ""
            },
            {
              "name": "Fourth place",
              "note": ""
            },
            {
              "name": "Fifth place",
              "note": ""
            },
            {
              "name": "Sixth place",
              "note": ""
            },
            {
              "name": "Seventh place",
              "note": "Say what differs here"
            },
            {
              "name": "Eighth place",
              "note": "Say what differs here"
            }
          ],
          "note": "Say what to do when a place is missing.",
          "action": {
            "label": "Main action",
            "href": "tel:+441134960123"
          }
        }} />
      </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.
titlestring'Say where you work and how far'Text, up to 120 characters.
descriptionstring'Say in one sentence how far you tra…'Text, up to 1500 characters.
basestring'Name the town you work from'Text, up to 80 characters.
areas{ name, note, href }[]8 itemsList of 1 to 80. Each item: name, note, href (optional).
notestring'Say what to do when a place is miss…'Text, up to 200 characters.
actionLink{…}See the type.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.