# Hero, contact card

- **[Sections](/blocks/)**
- **[Hero](/blocks/hero/)**
- **Hero, contact card**

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

- **CLI**

  ```
  npx shadcn add https://ui.klarhimmel.com/r/hero-contact-card.json
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/hero-contact-card';
  ```

Also called

- 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

- **[Features, grid](/blocks/features/grid)**
- **[Testimonials, grid](/blocks/testimonials/grid)**
- **[Contact, address and map](/blocks/contact/map)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import HeroContactCard from '@/components/klarhimmel/blocks/hero-contact-card';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <HeroContactCard props={{
          "eyebrow": "Say what kind of business this is and the area it serves",
          "title": "Say what you help with, as one sentence a visitor would use",
          "description": "Say in one or two sentences who comes to you and what they leave with.",
          "action": {
            "label": "Main action",
            "href": "#contact"
          },
          "card": {
            "title": "Name the card",
            "rows": [
              {
                "label": "Name the first detail",
                "value": "The first detail, as a phone number",
                "href": "#phone"
              },
              {
                "label": "Name the second detail",
                "value": "The second detail, as a street and town",
                "href": ""
              },
              {
                "label": "Name the third detail",
                "value": "The third detail, as opening hours",
                "href": ""
              }
            ]
          }
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## 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.

- **eyebrow**: Text, up to 80 characters. Optional; empty is not rendered.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 240 characters.
- **action**: See the type.
- **card**: Fields: title, rows.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/hero/install)

[Next](/blocks/hero/cover)
