Contact, split with details


Install
npx shadcn add @klarhimmel/contact-split-detailsDetailsAbout, usage, props and more
The label, heading, lead and two buttons at the start beside a captioned picture, then under a thin rule two plain columns: the address, phone and email, and the…
Import
Import
- contact/split-details
- About
- The label, heading, lead and two buttons at the start beside a captioned picture, then under a thin rule two plain columns: the address, phone and email, and the opening hours with the day beside its time. On a phone everything stacks.
- 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 calm contact section: text and two buttons beside a captioned picture, with the address and opening hours as plain columns below a rule. For cards under a banner picture choose contact-banner-details.
Writing for it
- Title up to 100 characters, lead up to 240, caption up to 160. - Address up to 120 characters, phone up to 40, email up to 80. - One to seven hours rows, each a day up to 30 characters and a time up to 40.
Watch out for
The hours read best with short day labels such as Mon to Fri; a long day name pushes the time across the column.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the section' | Text, up to 60 characters. |
title | string | 'Say how a visitor reaches you' | Text, up to 100 characters. |
description | string | 'Say in one line when you answer.' | Text, up to 240 characters. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | Optional; empty is not rendered. |
media | Media | {…} | See the type. |
caption | string | 'Say what the picture shows.' | Text, up to 160 characters. |
contactTitle | string | 'Name the contact block' | Text, up to 60 characters. |
address | string | 'Give the street and town' | Text, up to 120 characters. |
phone | string | 'Give the phone number' | Text, up to 40 characters. |
email | string | 'Give the email address' | Text, up to 80 characters. |
hoursTitle | string | 'Name the hours block' | Text, up to 60 characters. |
hours | { day, time }[] | 3 items | List of 1 to 7. Each item: day, time. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |