Notification
Rich notification panels that slide in from the edge of the screen.
When to Use
- For important notifications with title and description
- When feedback needs more detail than a simple message
- For system-level alerts that require user attention
Import
Examples
Basic Usage
Types
Placement
API
Methods
notification.success(config)— Success notificationnotification.error(config)— Error notificationnotification.info(config)— Info notificationnotification.warning(config)— Warning notificationnotification.open(config)— Custom notificationnotification.destroy(key?)— Close notification(s)
NotificationConfig
message—ReactNode— Notification titledescription—ReactNode— Notification bodyduration—number | null— Auto-close delay in seconds (default:4.5,nullfor persistent)type—"success" | "error" | "info" | "warning"— Notification typeplacement—"topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "top" | "bottom"— Positionclosable—boolean— Show close button (default:true)actions—ReactNode— Action buttonsshowProgress—boolean— Show auto-close progress barpauseOnHover—boolean— Pause auto-close on hover (default:true)key—string— Unique key for updatesicon—ReactNode— Custom icononClose—() => void— Close callback