Skip to main content

Alert

The Alert component is used to convey important information to the user through the use of contextual types, icons, and colors. These default types come in 4 variations: success, info, warning, and error.

info

For more details about Vuetify’s usage of Alert component, click Alert page.
For more prop explanations, click Vuetify Alert API page.

Props

AttributeDescriptionTypeDefault
borderPuts a border on the alert. Accepts top, right, bottom, left.stringundefined
closeIconChange the default icon.stringmdi-close-circle
coloredBorderApplies the defined color to the alert’s border.booleantrue
darkApplies dark theme.booleanfalse
dismissibleAdds a close icon that can hide the alert.booleantrue
iconDesignates a specific icon.stringmdi-check-circle
modeSets the transition mode.stringundefined
prominentDisplays a larger vertically centered icon to draw more attention.booleanfalse
originSets the transition origin on the element.stringundefined
tagSpecify a custom tag used on the root element.stringundefined
textApplies the defined color to text and a low opacity background of the same.booleanfalse
transitionSets the component transition.stringundefined
typeSpecify a success, info, warning or error alert. Uses the contextual color and has a pre-defined icon.stringundefined
valueSets the alert is active or passive.booleantrue
visibleVisibility of Alert component.booleantrue

Events

AttributeDescription
inputEmitted when close icon is clicked