Terminal typewriter
ProCommands that type, pause, and answer like a real shell.
$ galley copy ascii-donut
✓ prompt copied · 412 chars
$ paste --into cursor
→ AsciiDonut.tsx written
→ 0 dependencies added
When to use
- A product section that shows a real command and the answer it prints.
- An onboarding step where the sequence is short enough to watch once.
When not to use
- Documentation the reader must scan. Typed output hides lines until the caret arrives.
- Live logs. This plays a script; it does not stream a process.
Usage
- Copy the prompt and replace the script with your own command and output lines.
- Set the typing speed and the pause before each answer.
- Put the panel on a dark surface and let it loop only after the last line has been readable for a moment.
example.tsx
1import { TerminalTypewriter } from "@/effects/terminal-typewriter";2 3export function Preview() {4 return (5 <div className="h-64">6 <TerminalTypewriter />7 </div>8 );9}