A toast notification alert that appears briefly.
Dependencies
framer-motion
Installation
npm install framer-motion
Props
Name | Type | Default | Description |
---|---|---|---|
message | string | - | The message to display in the toast. |
isOpen | boolean | false | Controls the visibility of the toast. |
onClose | function | - | Function to call when the toast is closed. |
duration | number | 3000 | Duration in milliseconds for which the toast is visible. |