Notification
Notification cards in the top-right corner, supporting title, description, duration, and type.
Basic usage
Four types
Custom duration
Custom duration
Clear all
Clear all
API
Methods
| Method | Description |
|---|---|
notification.info({ title, description?, duration? }) | Info notification |
notification.success({ title, description?, duration? }) | Success notification |
notification.warning({ title, description?, duration? }) | Warning notification |
notification.error({ title, description?, duration? }) | Error notification |
destroyAllNotification() | Clear all notifications |
durationdefaults to4500ms; pass0to keep the notification open.- Stacked at the top-right,
role="region"+aria-label="Notification".