# Hero, terminal

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

Headline and actions beside a terminal panel (command and output) and a prompt box. For developer and agent products.

## Import

- **CLI**

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

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

Also called

- hero/terminal

- **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**: An opener for products used through a command line or an AI agent, showing a command with its output next to a prompt panel. For a simpler install line use `hero-code`; for a pitch with a screenshot use `hero-split`.
- **Writing for it**: - The terminal object takes a command (120) and an output (160). Make the output the real first result a user sees, not a placeholder line.
- The prompt object has a label (20) and a text (400). The text is the longest field and should read as something a person would paste into an agent.
- Both panels sit beside the copy on wide containers and below it on narrow ones, so write the headline to stand alone.
- **Watch out for**: This is a hero and carries the page's h1. `features-terminal` shows the same two panels lower on the page, so use only one of them per page unless the content differs.

## Pairs well with

- **[Navbar, simple](/blocks/navigation/simple)**
- **[Features, terminal](/blocks/features/terminal)**
- **[Logos strip](/blocks/logo-cloud/row)**

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

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <HeroTerminal props={{
          "eyebrow": "Name what this is",
          "title": "Say what the visitor gets in one line",
          "description": "Say in one or two sentences what it does, who it is for and what the visitor can do next, in plain words.",
          "primary": {
            "label": "Name the main action",
            "href": "#skill"
          },
          "secondary": {
            "label": "Second action",
            "href": "#recipes"
          },
          "terminal": {
            "command": "npx your-app add skill",
            "output": "✓ Added .claude/skills/your-app/SKILL.md"
          },
          "prompt": {
            "label": "Prompt",
            "text": "Write the request a visitor would give the agent: what to build, what it contains and what the main action is."
          }
        }} />
      </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 120 characters.
- **description**: Text, up to 300 characters.
- **primary**: Optional; empty is not rendered.
- **secondary**: Optional; empty is not rendered.
- **terminal**: Fields: command, output.
- **prompt**: Fields: label, text.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/hero/split-mosaic)

[Next](/blocks/hero/twin-pictures)
