Back
Typing Text
Satu Visual ComponentNew
Cycles through words with a typewriter effect and blinking caret.
I build
Installation
Add it with the CLI:
Terminal
$
Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.
Usage
Pass an array of words — it types each, pauses, deletes, and moves on, looping forever.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| words | string[] | — | Words to cycle through. |
| className | string | — | Extra classes. |
| typingSpeed | number | 90 | Ms per typed character. |
| deletingSpeed | number | 45 | Ms per deleted character. |
| pause | number | 1400 | Pause after a full word, ms. |