Terminal

An animated terminal that types out a script of commands and output — for demos, onboarding and agent transcripts

Category: display · WCAG 2.2-AA · ai, terminal, cli, demo, typewriter, agent, transcript

Props

PropTypeDefaultDescription
linesTerminalLine[]—The script. Each line has `text`, an optional `prefix` (e.g. ` Terminal — accessible React component — cascivo ) and a `type` (`command | output | error | comment`, default `output`).
speednumber3Characters typed per animation frame.
loopbooleanfalseRestart from the first line after the last one.
onComplete() => void—Called each time the last line finishes typing.
labels{ label?: string }—Overrides for the component’s user-visible strings (i18n) — `label` names the terminal for screen readers.

Design tokens

When to use

When not to use

How to build an accessible Terminal in React →

Examples

Install transcript

<Terminal
  lines={[
    { text: 'npx cascivo add button', prefix: '
#39;, type: 'command' }, { text: 'Added button to src/components.', type: 'output' }, { text: '# done in 1.2s', type: 'comment' }, ]} />

Related components

← Back to docs