Feedback
Alert
Severity semantics, inline layout, optional actions, and explicit dismissal — never a toast.Scheduled maintenance
Sync pauses on Sunday from 02:00 to 04:00 UTC.
Playground
Configure the component and copy synchronized Vue code.
Token map
The manual manifest combines inherited token owners with local deltas.
MAlert · All22 tokens
md-alertMAlert API
Props, slots, and events are generated from the current public kit contract.
Props
NameTypeDefault
typeSeverity that selects the visual scheme and automatic announcement level.'info' | 'success' | 'warning' | 'error''info'variantSurface treatment of the alert container.Extract<MVariant, 'tonal' | 'outlined'>'tonal'titlePlain-text heading; the title slot takes precedence.string''textPlain-text message; the default slot takes precedence.string''iconExplicit leading icon name; false leaves the icon area empty.string | falsefalseclosableRenders the dismiss control.booleanfalsecloseLabelAccessible name of the dismiss control.string'Close'announceLive-region behavior; auto is assertive only for errors.'auto' | 'polite' | 'assertive' | 'off''auto'Slots
Events
MAlert does not emit component-specific events. Native events fall through to its root element.