Contact, accordion rows


Install
npx shadcn add https://ui.klarhimmel.com/r/contact-accordion-rows.jsonDetailsAbout, usage, props and more
A label, heading and lead beside a picture, then ways to get in touch stacked beneath as rows that open on a tap, each showing a line, a detail and one action.
Import
Import
- contact/accordion-rows
- About
- A label, heading and lead beside a picture, then ways to get in touch stacked beneath as rows that open on a tap, each showing a line, a detail and one action. The first row starts open.
- 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 needs a heading beside a picture and then several ways to reach you, each hidden behind a tap until wanted: phone, mail, visit. For a flat list of channels with no picture choose contact-channels; for a form choose contact-form.
Writing for it
- Title up to 120 characters, lead up to 240, one to six rows. - Each row has a heading of 60, a line of 160, a detail of 80 such as a number or street, and one action with a style of primary, secondary or link. - The first row can start open with the open prop.
Watch out for
Closed rows hide their detail from a skimming visitor, so keep the heading itself informative and open the row that matters most. Use at most one filled action per section.
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 | 'Section name' | Text, up to 60 characters. |
title | string | 'Say how a visitor can reach you' | Text, up to 120 characters. |
description | string | 'Say in one or two sentences what th…' | Text, up to 240 characters. |
media | Media | {…} | See the type. |
rows | { title, description, detail, action, actionStyle, open }[] | 3 items | List of 1 to 6. Each item: title, description, detail, action, actionStyle ('primary' | 'secondary' | 'link') (optional), open. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |