Skip to content
Klarhimmel UI

Contact, overlay aside

Contact, overlay aside previewContact, overlay aside preview

Install

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

A wide picture with the heading laid over its foot beside a narrow ruled card holding the lead, address, phone and email, a one-field form, three actions and a profile…

Import

Import

import Block from '@/components/klarhimmel/blocks/contact-overlay-aside';
Also called
  • contact/overlay-aside
About
A wide picture with the heading laid over its foot beside a narrow ruled card holding the lead, address, phone and email, a one-field form, three actions and a profile link with the legal line. On a phone the picture sits above the card.
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 when a contact section needs one wide picture carrying the heading and a narrow column that holds everything a visitor can do: read the address, type one thing, press a button. For a form with a long message field pick contact-form; for a short details card over a picture pick contact-overlap-card.

Writing for it

- Heading up to 80 characters, drawn over the picture in about two lines. - Lead up to 240 characters; one field with a label, a placeholder and a help line. - Up to three round profile links, each with a name that is read aloud.

Watch out for

The picture is darkened by half so the heading reads, so a pale photo works best. Set the form action and method or the send button does nothing on a live page.

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 ContactOverlayAside from '@/components/klarhimmel/blocks/contact-overlay-aside';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ContactOverlayAside props={{
          "media": {
            "src": "/pictures/photo-wed1.avif",
            "alt": "A timber barn hall dressed with white fabric and tables"
          },
          "eyebrow": "Name the section",
          "title": "Say how a visitor reaches you",
          "description": "Say in one or two sentences when you answer and what to bring up first.",
          "detailsTitle": "Name the place or the team",
          "address": "Give the street and town",
          "phone": {
            "label": "Give the phone number",
            "href": "#phone"
          },
          "email": {
            "label": "Give the email address",
            "href": "#email"
          },
          "fieldLabel": "Name the one thing you ask for",
          "fieldHelp": "Say in a few words how the answer is used.",
          "submit": "Send",
          "primary": {
            "label": "Main action",
            "href": "#start"
          },
          "secondary": {
            "label": "Second action",
            "href": "#contact"
          },
          "textLink": {
            "label": "Name the extra page",
            "href": "#more"
          },
          "profiles": [
            {
              "label": "Name the profile",
              "href": "#profile"
            }
          ],
          "legal": "Say in a few words what applies."
        }} />
      </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
mediaMedia{…}See the type.
eyebrowstring'Name the section'Text, up to 60 characters.
titlestring'Say how a visitor reaches you'Text, up to 80 characters.
descriptionstring'Say in one or two sentences when yo…'Text, up to 240 characters.
detailsTitlestring'Name the place or the team'Text, up to 60 characters.
addressstring'Give the street and town'Text, up to 120 characters.
phoneLink{…}Optional; empty is not rendered.
emailLink{…}Optional; empty is not rendered.
fieldLabelstring'Name the one thing you ask for'Text, up to 60 characters.
fieldNamestring-Text, up to 40 characters. Optional; empty is not rendered.
fieldPlaceholderstring-Text, up to 80 characters. Optional; empty is not rendered.
fieldHelpstring'Say in a few words how the answer i…'Text, up to 120 characters.
submitstring'Send'Text, up to 40 characters.
primaryLink{…}See the type.
secondaryLink{…}Optional; empty is not rendered.
textLinkLink{…}Optional; empty is not rendered.
profilesLink[]1 itemList of up to 3.
legalstring'Say in a few words what applies.'Text, up to 120 characters.
actionstring-Text, up to 300 characters. Optional; empty is not rendered.
method'post' | 'get'-One of 'post', 'get'. Optional; empty is not rendered.
hidden{ }-Optional; empty is not rendered.
captchaboolean-Optional; empty is not rendered.
captchaSitekeystring-Text, up to 100 characters. Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.