Contact, mosaic tiles


Install
npx shadcn add @klarhimmel/contact-mosaic-tilesDetailsAbout, usage, props and more
Five tiles in a mosaic: a heading card, a tinted band of actions beneath it, a tall captioned picture beside both, then an opening-hours card and a wider details card…
Import
Import
- contact/mosaic-tiles
- About
- Five tiles in a mosaic: a heading card, a tinted band of actions beneath it, a tall captioned picture beside both, then an opening-hours card and a wider details card with a picture. On a phone the tiles stack in one column.
- 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 visit page with several small facts: a heading card, one tinted band of actions, a captioned picture, opening hours and a details card, all as tiles. For one plain details row choose contact-banner-details.
Writing for it
- Title up to 100 characters, lead up to 240; two buttons and one quiet link, each label up to 40 characters. - One to seven hours rows; address up to 120 characters, phone up to 40, email up to 80.
Watch out for
Two pictures are needed, a tall one and a small upright one; leave either empty only while drafting. The tiles stack in one column below about 56 rem.
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. |
textLink | Link | {…} | Optional; empty is not rendered. |
media | Media | {…} | See the type. |
caption | string | 'Say what the picture shows.' | Text, up to 120 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. |
detailsTitle | 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. |
profile | Link | {…} | Optional; empty is not rendered. |
detailsMedia | Media | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |