Contact, channels


Install
npx shadcn add @klarhimmel/contact-channelsDetailsAbout, usage, props and more
Two to four ways to reach you as cards: an icon, the channel name, who it is for, the address or number as a link, and how fast you answer.
Import
Import
- contact/channels
- About
- Two to four ways to reach you as cards: an icon, the channel name, who it is for, the address or number as a link, and how fast you answer. For support pages and anywhere "contact us" is really a choice.
- 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
Two to four ways to reach you as cards, each with an icon, a name, who it is for, the address as a link and a reply time. Use contact-form when you want people to write a message here and now.
Writing for it
- Each channel needs a name (30) and a value (60); the detail (100) is the place to say who should use it, such as 'For urgent faults'. - The response (40) is a small line at the bottom of the card. Give a real number like 'Within one working day'. - The value is shown as the link text and wraps anywhere in a long address, so type the exact email or number, not a description.
Watch out for
Every card links with its href, which is not checked against its value, so a mailto href must be written out yourself. The grid is 2 columns at @2xl and 3 or 4 only when the container is wide enough, so four cards can appear as two rows of two.
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 that they can pick a channel' | Text, up to 120 characters. |
description | string | 'Say in one sentence who answers and…' | Text, up to 300 characters. |
channels | { icon, name, detail, value, href, response }[] | 3 items | List of 2 to 4. Each item: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), name, detail, value, href, response. |
align | 'left' | 'center' | - | One of 'left', 'center'. Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |