Skip to content

Notification

Notification cards in the top-right corner, supporting title, description, duration, and type.

Basic usage

Four types

InfoSuccessWarningError

Custom duration

Custom duration

8sNo auto-close

Clear all

Clear all

Fire threeClear all

API

Methods

MethodDescription
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
  • duration defaults to 4500ms; pass 0 to keep the notification open.
  • Stacked at the top-right, role="region" + aria-label="Notification".