An alert that fades in and out.
Dependencies
framer-motion
Installation
npm install framer-motion
Props
Name | Type | Default | Description |
---|---|---|---|
message | string | - | The message to display in the fading alert. |
isOpen | boolean | false | Controls the visibility of the alert. |
onClose | function | - | Function to call when the alert is closed. |
duration | number | 3000 | Duration in milliseconds before the alert starts fading out. |