Contact, banner and details


Install
npx shadcn add https://ui.klarhimmel.com/r/contact-banner-details.jsonDetailsAbout, usage, props and more
A wide picture first, then a headline with actions and two detail blocks, an address with phone and email and a list of opening hours.
Import
Import
- contact/banner-details
- About
- A wide picture first, then a headline with actions and two detail blocks, an address with phone and email and a list of opening hours. Centered stacks the intro over two cards; split puts the intro and details left and the actions right.
- 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 place people visit or call, when a wide picture should lead and the address, phone, email and opening hours follow as two clear blocks. Pick contact-map when a real map is the picture, and contact-offices when there are several places to list.
Writing for it
- Title up to 120 characters, description up to 240, caption up to 120, hours 1 to 8 rows with a day up to 30 and a time up to 40. - Set layout to centered for a full-width banner with two cards, or split for a contained banner with a caption and the actions on the right.
Watch out for
The banner needs a real wide picture, since it is cropped to a wide ratio. Keep the hours rows short so they stay on one line on a phone, and leave the caption empty in the centered layout, where it is not drawn.
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 |
|---|---|---|---|
layout | 'centered' | 'split' | 'centered' | One of 'centered', 'split'. Optional; empty is not rendered. |
eyebrow | string | 'Name a topic' | Text, up to 60 characters. |
title | string | 'Say how to reach or visit you' | Text, up to 120 characters. |
description | string | 'Say in one line what the visitor ca…' | Text, up to 240 characters. |
banner | Media | {…} | See the type. |
caption | string | '' | Text, up to 120 characters. Optional; empty is not rendered. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | Optional; empty is not rendered. |
more | Link | {…} | Optional; empty is not rendered. |
contactTitle | string | 'Name the contact block' | Text, up to 60 characters. |
address | string | 'Give the street address and town' | Text, up to 120 characters. |
phone | string | '+00 00 00 00 00' | Text, up to 40 characters. |
email | string | 'you@company.example' | Text, up to 80 characters. |
hoursTitle | string | 'Name the hours block' | Text, up to 60 characters. |
hoursNote | string | 'Say in one line when the visitor ca…' | Text, up to 160 characters. Optional; empty is not rendered. |
hours | { day, time }[] | 3 items | List of 1 to 8. Each item: day, time. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |