Skip to content
Klarhimmel UI

Features, terminal

Features, terminal previewFeatures, terminal preview

Install

npx shadcn add @klarhimmel/features-terminal
DetailsAbout, 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

import Block from '@/components/klarhimmel/blocks/features-terminal';
Also called
  • 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.

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 FeaturesTerminal from '@/components/klarhimmel/blocks/features-terminal';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <FeaturesTerminal props={{
          "eyebrow": "Name the section",
          "title": "Say what the reader hands over",
          "description": "Say what the reader installs, what it lets their tool do, and what the reader asks for next. Add which pages or full-page recipes it covers.",
          "link": {
            "label": "Read more about it",
            "href": "#agent"
          },
          "terminal": {
            "command": "npx your-app add first-step",
            "output": "✓ Added .your-tool/skills/your-app/SKILL.md"
          },
          "prompt": {
            "label": "Prompt",
            "text": "Say what to ask for, with {product} and {plans} as the slots, which skill to use and what to lead with."
          }
        }} />
      </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.

PropTypeDefaultDescription
eyebrowstring'Name the section'Text, up to 60 characters.
titlestring'Say what the reader hands over'Text, up to 120 characters.
descriptionstring'Say what the reader installs, what …'Text, up to 300 characters.
linkLink{…}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.