Typewriter
display
Reveals static text character by character
Terminal
$termuijs render typewriter
Installation
$ bunx termuijs add typewriter
Copies the source into src/components/typewriter/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Typewriter } from '@termuijs/widgets'ts
new Typewriter(text: string, style: Partial<Style> = {}, opts: TypewriterOptions = {},)API Reference
Typewriter
| Prop | Type | Required | Description |
|---|---|---|---|
text | string | required | — |
speed | number | optional | Characters revealed per tick |
cursor | string | optional | Cursor glyph drawn at the reveal head |