Contact, pair of pictures


Install
npx shadcn add @klarhimmel/contact-pair-picturesDetailsAbout, usage, props and more
Two pictures side by side on top, then a centred label, heading and line, a row of email and phone links, and two buttons beneath. No form. On a phone the pictures stack.
Import
Import
- contact/pair-pictures
- 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 should lead with two photos, say of the team or the place, and keep the ask light: a centred line, an email and a phone link, and up to two buttons. For a form choose contact-form; for several channels as cards choose contact-channels.
Writing for it
- Title up to 120 characters, line up to 240, eyebrow up to 60; up to three contact links, each label up to 60 characters; kind is email or phone. - Exactly two pictures, shown 4 to 3, so crop faces and rooms with room to spare.
Watch out for
Two weak photos weigh as much as the heading does. Use two pictures of different things, not near copies, and leave a contact link blank rather than invent one.
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 |
|---|---|---|---|
pictures | { media }[] | 2 items | List of 2 to 2. Each item: media. |
eyebrow | string | 'Name the topic' | Text, up to 60 characters. |
title | string | 'Say how to reach you' | Text, up to 120 characters. |
description | string | 'Say in one line who answers and how…' | Text, up to 240 characters. |
contacts | { kind, label, href }[] | 2 items | List of up to 3. Each item: kind ('email' | 'phone'), label, href. |
primary | Link | {…} | See the type. |
secondary | Link | {…} | Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |