OptionalbeforeOptionalbeforeHook before showing the toast, e.g. adding a fade-in transition.
OptionalclassAdditional 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.
OptionalstyleAdditional 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.
Hook before closing the toast, e.g. adding a fade-out transition.