React Simple Typewriter
A simple react component for adding a nice typewriter effect to your project.
Install
Usage (Hook)
Hook Configuration
Usage (Component)
Available Props
Prop | Type | Description | Default |
---|---|---|---|
loop |
Boolean | Repeat the typing effect (true if present) | false |
cursor |
Boolean | Show / Hide cursor (show if present) | false |
cursorStyle |
String | Change the cursor style | | |
typeSpeed |
Integer | Speed in Milliseconds | 100 |
deleteSpeed |
Integer | Word deleting speed in Milliseconds | 50 |
delaySpeed |
Integer | Delay after the word is written in Milliseconds | 1500 |
words |
Array | Array of strings holding the words | - |
onLoop |
(loopCount: Integer) => void | Called when a loop is complete. loopCount is the total number of completed loops. Only called if loop = true |
noop |
onDone |
() => void | Called when typewriter is done. Only called if loop = false | noop |