An alert with a countdown timer that automatically closes.
Dependencies
framer-motion
Installation
npm install framer-motion
Props
Name | Type | Default | Description |
---|---|---|---|
message | string | - | The message to display in the countdown alert. |
isOpen | boolean | false | Controls the visibility of the alert. |
onClose | function | - | Function to call when the alert is closed. |
duration | number | 5 | Duration in seconds for the countdown. |