Hero, terminal


Install
npx shadcn add @klarhimmel/hero-terminalDetailsAbout, usage, props and more
Headline and actions beside a terminal panel (command and output) and a prompt box. For developer and agent products.
Import
Import
- 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
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 | 'Name what this is' | Text, up to 60 characters. |
title | string | 'Say what the visitor gets in one li…' | Text, up to 120 characters. |
description | string | 'Say in one or two sentences what it…' | Text, up to 300 characters. |
primary | Link | {…} | Optional; empty is not rendered. |
secondary | Link | {…} | Optional; empty is not rendered. |
terminal | { command, output } | {…} | Fields: command, output. |
prompt | { label, text } | {…} | Fields: label, text. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |