An alert that can be expanded to show more details.
Dependencies
framer-motion, react-icons
Installation
npm install framer-motion react-icons
Props
Name | Type | Default | Description |
---|---|---|---|
title | string | - | The title of the expanding alert. |
message | string | - | The detailed message to display when expanded. |
isOpen | boolean | false | Controls the visibility of the alert. |
onClose | function | - | Function to call when the alert is closed. |