Features, terminal


Install
npx shadcn add @klarhimmel/features-terminalDetailsAbout, usage, props and more
Section heading and a link beside a terminal command and a prompt box. The section version of hero-terminal (h2).
Import
Import
- features/terminal
- Category
- What it does, as a grid, a list, tabs or alternating rows. New project? Set it up once: /get-started/installation.
Notes
When to use it
A features section built around a terminal panel with a command and its output, next to a prompt panel. For developer or agent products only; features-grid is the general choice.
Writing for it
- The terminal takes a command (120) and an output (160). Show a real command with a result that proves the feature. - The prompt has a label (20) and a text (400). The label names who is speaking, such as You, and the text is what they type. - The link field sits with the heading and is dropped when its label is empty, so it can be left out.
Watch out for
The title is an h2 here, because the page's h1 belongs to the hero. hero-terminal uses the same panels, so showing both on one page repeats the same picture.
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 the section' | Text, up to 60 characters. |
title | string | 'Say what the reader hands over' | Text, up to 120 characters. |
description | string | 'Say what the reader installs, what …' | Text, up to 300 characters. |
link | Link | {…} | See the type. |
terminal | { command, output } | {…} | Fields: command, output. |
prompt | { label, text } | {…} | Fields: label, text. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |