Hero, contact card


Install
npx shadcn add https://ui.klarhimmel.com/r/hero-contact-card.jsonDetailsAbout, usage, props and more
A hero with no picture for a local practice or trade: a small line on who and where they serve, a large title, a line and one button on the left, and a ruled card on…
Import
Import
- hero/contact-card
- About
- A hero with no picture for a local practice or trade: a small line on who and where they serve, a large title, a line and one button on the left, and a ruled card on the right with how to reach them (phone, address, hours).
- Category
- The first screen: what it is, who it is for, what to do next. New project? Set it up once: /get-started/installation.
Notes
When to use it
A hero with no picture for a local practice or trade, with a ruled card on the right that says how to reach them. Use hero-split when you have a real photograph of the place or the work.
Writing for it
- Fill the card with details a visitor acts on: a phone number, a street and town, opening hours. Each row has a short label and a value. - Give the value a tel:, mailto: or map link and it becomes tappable. Without a link it is plain text, which is right for hours. - Write the title as what the practice helps with, set large, and keep the line under it to who comes and what they leave with.
Watch out for
On a phone the card follows the button, so the number lands below the fold if the title and line run long. Keep both short enough that the card starts on the first screen.
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 | 'Say what kind of business this is a…' | Text, up to 80 characters. Optional; empty is not rendered. |
title | string | 'Say what you help with, as one sent…' | Text, up to 120 characters. |
description | string | 'Say in one or two sentences who com…' | Text, up to 240 characters. |
action | Link | {…} | See the type. |
card | { title, rows } | {…} | Fields: title, rows. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |