Skip to content
RivetUI

Terminal

Displays commands and output with copy support and switchable variants.

@rivetui/terminal

Preview

Explore each composition interactively, then open its code in the same context.

Default

Offer equivalent commands as typed variants when a workflow supports multiple package managers.

Note
The selected command variant is shared with other Terminal instances that use the same values.
Install package
bun add lucide-react --exact

Command forms

Use one command for a direct action or preserve line breaks for a short sequence.

Repository
git status --short
Release pipeline
bun install
bun run check
bun run build

Output

Disable the prompt and copy action when the surface represents output rather than input.

Build result
✓ Compiled successfully
✓ Generated 28 static pages
Done in 2.84s

Registry

Installation

Add the component source and its declared dependencies with the shadcn CLI.

Install component
bunx --bun shadcn@latest add @rivetui/terminal
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

PropTypeDefault
commandstring—
commandsreadonly TerminalCommand[]—
defaultValueTCommands[number]["value"] | stringfirst command
valueTCommands[number]["value"] | string—
onValueChange(value: string) => void—
labelReactNode"Terminal"
promptReactNode | false"$"
languagestring"shell"
copyablebooleantrue
Rivet UI / TerminalComponents engineered, not decorated.