# Hero, minimal

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

Oversized headline, one line of description and a single link, left-aligned or centred, optionally filling the screen. No media.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/hero-minimal
  ```
- **Import**

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

Also called

- hero/minimal

- **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 text-only opener with a headline, a sentence and one action, for pages where words carry the message. If you have an image or a second action to offer, take `hero-centered` or `hero-split`.
- **Writing for it**: - Here the title allows 160 characters, longer than other heroes, which makes room for a full statement of position instead of a slogan.
- There is only one link field, primary. Make its label a verb phrase about what happens next, such as Book a call.
- The description holds 300 characters, and with no image it is what keeps the page from feeling empty, so name a concrete detail.
- **Watch out for**: The primary button disappears when its label is empty, and there is no secondary action to fall back on, so a cleared label leaves a hero with no way forward.

## Pairs well with

- **[Navbar, centred](/blocks/navigation/centered)**
- **[Features, list](/blocks/features/list)**
- **[Testimonial, quote](/blocks/testimonials/quote)**

## 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 HeroMinimal from '@/components/klarhimmel/blocks/hero-minimal';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <HeroMinimal props={{
          "eyebrow": "Name what this is",
          "title": "Say what the visitor gets in one line",
          "description": "Say in one sentence what it does and who it is for, plainly.",
          "primary": {
            "label": "Main action",
            "href": "#work"
          }
        }} />
      </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 60 characters.
- **title**: Text, up to 160 characters.
- **description**: Text, up to 300 characters.
- **primary**: Optional; empty is not rendered.
- **secondary**: Optional; empty is not rendered.
- **width**: One of 'wide', 'narrow'. Optional; empty is not rendered.
- **align**: One of 'start', 'center'. Optional; empty is not rendered.
- **height**: One of 'auto', 'screen'. Optional; empty is not rendered.
- **tiles**: List of up to 4. Each item: name, description, href, media (optional). Optional; empty is not rendered.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/hero/media-foot)

[Next](/blocks/hero/panel-tiles)
