Skip to main content

AlertParams

AlertParams = object

Properties​

buttons?​

optional buttons?: object[]

Optional buttons to display in the alert

label​

label: string

value​

value: any


message?​

optional message?: string

The message to display in the alert


messageHtml?​

optional messageHtml?: string

The message to display in the alert as HTML (can be used instead of message)


timeout?​

optional timeout?: number | "unlimited"

The timeout of the alert in seconds or 'unlimited' to keep the alert open until the user closes it. Default is 10 seconds;


variant?​

optional variant?: AlertVariant | keyof typeof AlertVariant

The variant of the alert