|
Installation
Props
Prop | Type | Default | Description |
---|---|---|---|
text | string | string[] | - | Text or array of texts to animate |
className | string | "" | Additional CSS class names |
cursorClassName | string | "" | Additional CSS class names for cursor |
speed | number | 100 | Typing speed in milliseconds |
cursor | string | ReactNode | "|" | Custom cursor character or React node |
loop | boolean | false | Whether to loop through text array |
deleteSpeed | number | 50 | Deletion speed in milliseconds |
delay | number | 1500 | Delay between typing/deleting in milliseconds |
onTextChange | (text: string) => void | - | Callback fired when displayed text changes |