Skip to main content

Alerts

The props passed to an alert action's onClick handler or component.

Signature

data

propertyTResponse

dismiss

property() => void

Defines an alert action. Either provide an onClick handler (rendered as a default button with the given label), or a component for full control over rendering and hook access.

Signature

Allows you to define custom alerts that can be displayed in the dashboard.

Signature

id

propertystring

A unique identifier for the alert.

title

propertystring | ((data: TResponse) => string)

The title of the alert. Can be a string or a function that returns a string based on the response data.

description

propertystring | ((data: TResponse) => string)

The description of the alert. Can be a string or a function that returns a string based on the response data.

severity

propertyAlertSeverity | ((data: TResponse) => AlertSeverity)

The severity level of the alert.

check

property() => Promise<TResponse> | TResponse

A function that checks the condition and returns the response data.

shouldShow

property(data: TResponse) => boolean

A function that determines whether the alert should be rendered based on the response data.

recheckInterval

propertynumber

The interval in milliseconds to recheck the condition.

actions

propertyArray<DashboardAlertAction<TResponse>>

Optional actions that can be performed when the alert is shown.

Each action is either a simple onClick handler (rendered as a default button with the given label), or a component for full control over rendering and access to React hooks.

Was this chapter helpful?
Report Issue
Edited Mar 18, 2026ยทEdit this page