Alert
Displays important alert messages.
mode
Use the mode attribute to define Alert's mode.
state
You can define different states.
title
Predefined the title of the alert.
description
Predefined the description of the alert.
Icon
Predefined the title of the alert.
Closable
Use the closable attribute to define a removable alert.
Alert Props
Name | Type | Default | Description |
---|---|---|---|
mode | 'solid' | 'soft' | 'solid' | Set custom type attribute. |
state | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'primary' | Set alert state. |
description | string | '' | Set alert description. |
title | string | '' | Set alert title. |
icon | string | '' | Set alert icon. |
closable | boolean | false | Set alert closable. |
Button Slots
Name | Parameters | Description |
---|---|---|
title | () | Customize title content. |
default | () | Customize description content. |