alert
function adds an alert notification to your app.
Parameters
message
(str): The message displayed by the alertlevel
(str): The severity level of the alert. Valid values are: “info”, “success”, “warning”, “error”, “critical”size
(float): (Optional) The width of the component in a row. Defaults to1.0
(full row). See the Layout Guide for details.

Returns
str
of the providedmessage
Usage Example
Here’s an example of how to add an alert to your app:Key Features
- Customizable Message: Set the specific message of the alert.
- Adjustable Severity: Control the urgency by setting
level
to different severity levels.