gov-toast
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
accessibleCloseLabel | accessible-close-label | Aria label for the closing button. It is mandatory if the alert is closable | string | undefined |
closeLabel | close-label | Closing button texting instead of icons | string | undefined |
color | color | Style variation of the toast message. | "error" | "neutral" | "primary" | "success" | "warning" | "primary" |
gravity | gravity | Toast’s gravity | "bottom" | "top" | "top" |
position | position | Toast’s position | "center" | "left" | "right" | "right" |
time | time | Number of milliseconds to wait before Toast disappear | number | 0 |
type | type | Toast type | "bold" | "subtle" | "bold" |
Events
Event | Description | Type |
---|---|---|
gov-close | Called when the close button is clicked | CustomEvent<string> |
Methods
destroy() => Promise<void>
Remove toast from dom
Returns
Type: Promise<void>
Dependencies
Depends on
Graph
Built with StencilJS