Alert
An inline message — information, success, warning, error — where it concerns the user. A toast is the same message, floating and temporary.
| Class | Effect | Type |
|---|---|---|
.alert | A soft tint of its colour, an icon, a body, optional actions. | root |
.alert-outline.alert-solid | Sets variant, one class per value. | axis variant |
.alert-primary.alert-neutral.alert-info.alert-success.alert-warning.alert-error | Sets color, one class per value. | axis color |
.alert-xs.alert-sm.alert-md.alert-lg.alert-xl | Sets size, one class per value. | axis size |
.alert-actions | Buttons on the trailing side. | part |
.alert-body | The text, growing to fill the row. | part |
.alert-close | The close button of a dismissible alert. | part |
.alert-icon | The leading icon; takes the colour. | part |
.alert-title | A bold first line. | part |