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