An alert that types out its message.
Dependencies
framer-motion
Installation
npm install framer-motion
Props
Name | Type | Default | Description |
---|---|---|---|
message | string | - | The message to be typed out in the alert. |
isOpen | boolean | false | Controls the visibility of the alert. |
onClose | function | - | Function to call when the alert is closed. |
typingSpeed | number | 50 | The speed of typing in milliseconds per character. |