Skip to main content

<hx-toast> v0.8.0+ HelixUI v0.8.0 or later required

The custom <hx-toast> element provides a user with information for action outside of the user's current context.

Methods

dismiss()
Dismiss the toast (removes element from the DOM).
submit()
Simulate a mouse click on the CTA button.

Attributes

Attributes allow you to configure an element in a declarative manner via markup.

cta {String} (optional)
Set the text of the CTA button. If absent or blank, the CTA button will not be displayed.
type {Enum<String>} (optional)
Identifies the type of toast. Valid values are as follows:
  • info
  • error
  • success

Properties

Properties allow you to configure an element in an imperative manner via JavaScript.

cta{String}
Manipulates the cta attribute.
type{String}
Manipulates the type attribute.

See Also