# Custom Alert

> This Custom Animated Alert component is a modern alternative to the standard ShadCN alert, designed with motion-based transitions and default props for usability. By default, it displays a title and description so developers don’t need to pass in content every time, making it immediately functional out of the box. Each alert variant—success, error, warning, or info—is represented with a clear Lucide icon, ensuring quick recognition. The alert appears with a smooth fade and scale animation, and users can dismiss it using the close button for a clean experience.

- Author: [Ruixen UI](https://21st.dev/@ruixen.ui)
- Library: [Ruixen UI](https://21st.dev/@ruixen.ui/library/ruixen-ui)
- License: unknown
- npm dependencies: lucide-react, framer-motion
- Live preview: https://21st.dev/@ruixen.ui/components/custom-alert

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ruixen.ui/custom-alert?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
