Design systém4.2

gov-toast

Properties

PropertyAttributeDescriptionTypeDefault
accessibleCloseLabelaccessible-close-labelAria label for the closing button. It is mandatory if the alert is closablestringundefined
closeLabelclose-labelClosing button texting instead of iconsstringundefined
colorcolorStyle variation of the toast message."error" | "neutral" | "primary" | "success" | "warning""primary"
gravitygravityToast’s gravity"bottom" | "top""top"
positionpositionToast’s position"center" | "left" | "right""right"
timetimeNumber of milliseconds to wait before Toast disappearnumber0
typetypeToast type"bold" | "subtle""bold"

Events

EventDescriptionType
gov-closeCalled when the close button is clickedCustomEvent<string>

Methods

destroy() => Promise<void>

Remove toast from dom

Returns

Type: Promise<void>

Dependencies

Depends on

Graph


Built with StencilJS