NotificationStackProps interface
Props for NotificationStack.
Properties
| active |
Currently active notifications. |
| ignore |
If set, notifications with timestamp older than the time this component is mounted are not shown. This is useful when using the NotificationStack with a stateful client that handles more than one call or chat thread. Set this prop to ignore notifications from previous call or chat. |
| max |
Max notifications to show at a time. |
| on |
Callback called when the dismiss button is triggered. Use this to control notifications shown when they dismissed by the user. Note this onDismiss function will affect all notifications in the same stack |
| strings | Strings shown on the UI on errors. |
Property Details
activeNotifications
Currently active notifications.
activeNotifications: ActiveNotification[]
Property Value
ignorePremountNotifications
If set, notifications with timestamp older than the time this component is mounted are not shown.
This is useful when using the NotificationStack with a stateful client that handles more than one call or chat thread. Set this prop to ignore notifications from previous call or chat.
ignorePremountNotifications?: boolean
Property Value
boolean
maxNotificationsToShow
Max notifications to show at a time.
maxNotificationsToShow?: number
Property Value
number
onDismissNotification
Callback called when the dismiss button is triggered. Use this to control notifications shown when they dismissed by the user. Note this onDismiss function will affect all notifications in the same stack
onDismissNotification?: (dismissedNotification: ActiveNotification) => void
Property Value
(dismissedNotification: ActiveNotification) => void
strings
Strings shown on the UI on errors.
strings?: NotificationStackStrings