Optional
beforeOptional
beforeHook before showing the toast, e.g. adding a fade-in transition.
Optional
classAdditional className for the toast root element
The duration for the toast to show.
Whether to create the toast with ShadowDOM. Note that CSS may not work with ShadowDOM in pages with strict CSP limits.
Optional
styleAdditional CSS for the toast.
:host
can be used to match the host element.
Apply built-in themes, default as light
.
Available values are light
and dark
, any other value will disable the theme CSS.
Generated using TypeDoc
Hook before closing the toast, e.g. adding a fade-out transition.