Search Docs
Loading...
Skip to content

Type Alias: NotificationDuration

type NotificationDuration = number | "infinite" | "short" | "medium" | "long";

Represents the duration of the notification.

'infinite' keeps the notification until it is dismissed. Every other value stays for the time the user chose in the editor, 5 seconds by default.