Components
Alert
Displays a callout for user attention.
Usage ¶
Variants ¶
Component arguments ¶
Alert
¶
Argument | Type | Description |
---|---|---|
title |
str |
Optional. The title of the alert. If empty, the alert will not have a title. |
icon |
str |
Optional. The name of the icon to use for the alert, pass an empty string to remove the icon. Default is the icon for the variant. |
var |
str |
Optional. The variant of the alert. Can be one of: info , success , warning , critical , option , or accent . Default is info . |
dismissible |
bool |
Optional. Wheter to include a button so the user can dismiss the alert. Default is false . |
Alert.Description
¶
No arguments.
Alert.Actions
¶
No arguments.
Components ¶
Component |
File |
Source |
---|---|---|
Alert |
alert/index.jinja |
|
Alert.Description |
alert/description.jinja |
|
Alert.Actions |
alert/actions.jinja |
|
alert/alert.css |