Skip to content

VAlert

Props

NameTypeDescription
connotationEnum:
accent
success
alert
warning
information
announcement
Sets an appropriate icon / icon color for the connotation.
dismiss-button-aria-labelstringAllows setting a custom aria-label for the dismiss button.
headlinestringAdds a headline to the Alert.
iconEnum:
10-sec-backward-line
10-sec-backward-solid
10-sec-forward-line
10-sec-forward-solid
30-sec-backward-line
30-sec-backward-solid
30-sec-forward-line
30-sec-forward-solid
5-sec-backward-line
5-sec-backward-solid
5-sec-forward-line
5-sec-forward-solid
... 1268 more ...
A decorative icon the custom element should have. See the Vivid Icon Gallery for available icons and icon-names See the Vivid Icon Gallery for available icons: https://icons.vivid.vonage.com/
openbooleanOpen state of the Alert.
placementEnum:
top
bottom
top-start
top-end
bottom-start
bottom-end
The placement of the Alert on the screen.
removablebooleanAdds a close button to the Alert.
strategyEnum:
fixed
static
Controls the position of the Alert.
textstringThe main text of the Alert.
timeoutmsnumberTimeout after which the Alert will close.

Events

NameEvent TypeDescription
closeCustomEvent<undefined>Fired when the Alert is closed
openCustomEvent<undefined>Fired when the Alert is opened

Slots

NameDescription
action-itemsAdd action items to the Alert using this slot.
iconThe preferred way to add an icon to the component.
mainThe main content of the Alert.