Contact, picture panel


Install
npx shadcn add @klarhimmel/contact-visual-panelDetailsAbout, usage, props and more
A heading with its label and lead, a large rounded picture under it, and a white card on the picture at its lower left holding a name, icon lines for address, phone…
Import
Import
- contact/visual-panel
- About
- A heading with its label and lead, a large rounded picture under it, and a white card on the picture at its lower left holding a name, icon lines for address, phone, date or time, optional opening hours and buttons.
- 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 the place itself is the contact: a large picture with a card on it that holds the address, phone, date or time. Use actions header when the section opens on a display heading with its buttons beside it, and actions card when the buttons belong with the details. For a card beside the picture rather than on it pick contact-overlap-card.
Writing for it
- Title up to 100 characters; titleSize display for a large opening line. - Up to five icon lines of up to 80 characters, and up to six opening-hours rows. - Card name up to 60 characters.
Watch out for
The card covers the lower left of the picture, so keep the subject of the photo to the right. On a phone the card sits at the foot of the picture and the picture grows to hold it.
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. |
titleSize | 'small' | 'display' | - | One of 'small', 'display'. Optional; empty is not rendered. |
description | string | 'Say in one line when you answer.' | Text, up to 240 characters. |
actions | 'header' | 'card' | - | One of 'header', 'card'. Optional; empty is not rendered. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | Optional; empty is not rendered. |
media | Media | {…} | See the type. |
cardTitle | string | 'Name the place' | Text, up to 60 characters. |
lines | { kind, value, href }[] | 2 items | List of up to 5. Each item: kind ('address' | 'phone' | 'email' | 'date' | 'time'), value, href (optional). |
hoursTitle | string | '' | Text, up to 60 characters. |
hours | { day, time }[] | 0 items | List of up to 6. Each item: day, time. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |