Typewriter
Types a string out character by character with a blinking caret. Pass an array to cycle words - type, hold, backspace, next. A single string types once and holds.
Installation
npx stepwise-ui add typewriter
Props
PropTypeDescription
wordsstring | string[]One string types and holds; an array cycles through them.
typeSpeednumberms per character while typing. Default 65.
deleteSpeednumberms per character while deleting. Default 35.
holdTimenumberms to hold a completed word before deleting. Default 1400.
loopbooleanLoop the sequence. Default true when multiple words.
classNamestringExtra classes on the text.
caretClassNamestringExtra classes on the blinking caret.