Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Terminal

Pro

A terminal window that types commands and prints output when scrolled into view.

Installation

pnpm dlx shadcn@latest add @viewport/terminal

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
lines*TerminalLine[]—
titlestring"zsh"
typingSpeednumber

Milliseconds per typed character.

32
lineDelaynumber

Milliseconds between lines.

420
loopboolean

Replay from the start after finishing.

false
classNamestring—

Accessibility

  • Exposed as an image whose label lists the commands.
  • Prints everything at once under reduced motion.
  • Scrolls horizontally instead of wrapping on small screens.