Skip to content

Alert

The following alert component is used to show success, error, warning and info or any other messages. It is a single component and highly versatile allowing you to define your own variants and you may set duration it appears for, onClose and if it should be dismissed automatically. You can style it in place via Tailwind and className.

Install the following libraries. Assuming you have Tailwind CSS installed

Terminal window
npm install framer-motion lucide-react

Preview