Skip to content
Klarhimmel UI

Contact, minimal

Contact, minimal previewContact, minimal preview

Install

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

Typographic contact: one oversized email link as the call to action, then up to three quiet details (phone, visit, hours) in columns. No form, no map.

Import

Import

import Block from '@/components/klarhimmel/blocks/contact-minimal';
Also called
  • contact/minimal
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

Typographic contact: one oversized email address as the call to action, then up to three quiet details in columns. No form, no map. Use contact-form if you want messages to arrive in a structured form.

Writing for it

- The title (100) is set small and grey, as a lead-in, while the email is the big element, so word the title as the question the email answers. - Details take label (30), value (120) and an optional href, up to three. Give the phone an href of tel and the address none. - Use the note (160) for a promise about reply time. It sits right under the email.

Watch out for

The email is wrapped as a mailto link, with break-all, so a long address will break mid-word on narrow screens. A detail with a value but no href is plain text, not a link.

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ContactMinimal props={{
          "eyebrow": "Name the topic",
          "title": "Invite them in",
          "email": "you@company.example",
          "note": "Say who reads it and how fast they reply.",
          "details": [
            {
              "label": "Detail one",
              "value": "+00 00 000 00 00",
              "href": "tel:+46310000000"
            },
            {
              "label": "Detail two",
              "value": "Give the street address and town",
              "href": "https://example.com/map"
            },
            {
              "label": "Detail three",
              "value": "Give the days and hours",
              "href": ""
            }
          ]
        }} />
      </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 topic'Text, up to 60 characters.
titlestring'Invite them in'Text, up to 100 characters.
emailstring'you@company.example'Text, up to 80 characters.
notestring'Say who reads it and how fast they …'Text, up to 160 characters.
details{ label, value, href }[]3 itemsList of up to 3. Each item: label, value, href.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.