Alert
Display important messages with contextual styling for different severity levels.
When to Use
- For status messages after an action
- To highlight important information, warnings, or errors
- For persistent notification banners
Import
Examples
Types
With Description
Closable
With Icon
Banner
API
AlertProps
type—"success" | "info" | "warning" | "error"— Alert type (default:"info")message—ReactNode— Alert title/messagedescription—ReactNode— Additional description textclosable—boolean— Show close button (default:false)showIcon—boolean— Show type icon (default:false)icon—ReactNode— Custom iconaction—ReactNode— Action area (e.g., button)banner—boolean— Banner mode, no border (default:false)onClose—(e: MouseEvent) => void— Close callbackafterClose—() => void— Called after close animation