#API
Alert
props
Name | Description | Type | Default | Values | Required |
|---|---|---|---|---|---|
color | Theme or CSS color used for the control accents. | String | |||
type | Semantic alert type (info, success, error, warning). Controls the default icon. | String | infosuccesserrorwarning | ||
glow | Soft colored glow behind the alert. | Boolean | false | ||
light | Tinted background using the color at low opacity. | Boolean | false | ||
outlined | Outline style with a transparent fill. | Boolean | false | ||
removable | Shows a close control that emits `remove`. | Boolean | false | ||
closeLabel | Accessible label for the remove button. | String |
slots
Name | Description |
|---|---|
default | Alert message content. |
icon | Custom icon; overrides the type-based icon. |
removeIcon | Custom icon for the remove button. |
emits
Name | Description |
|---|---|
remove | Emitted when the remove button is clicked. |