Components Display
Alert
A message that stands out.
$ pyblade ui:add alert
Variants
Props
Written as attributes of <pb-ui.alert>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.
| Name | Type | Default | Description |
|---|---|---|---|
| variant | str | "info" | info, success, warning, error or neutral |
| title | str | "" | |
| icon | bool | True | Whether it shows the icon of its variant |
| class | str | "" | Added to the classes of the component. Every other attribute is spread on it too. |