Components › Display
Typewriter
Types words letter by letter with a blinking caret, then deletes them and types the next.
Installation
npx plankui@latest add typewriterUsage
import { Typewriter } from "@/components/ui/typewriter";
<Typewriter words={["dashboard", "settings page", "sign-in flow"]} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| words | string[] | required | Typed one after another. |
| speed | number | 70 | Milliseconds per letter; deleting is twice as fast. |
| pause | number | 1600 | How long a finished word stays. |
| loop | boolean | true | Start again after the last word, or stop on it. |
| caret | boolean | true | Show the blinking caret. |
| onWordChange | (index: number) => void | Called when a new word starts. |