eds-toast

Explore the Interactive Component

Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.

See It in Use with Code

Check out this practical implementation of component.

Plain HTML

In React and Vue

Properties

PropertyAttributeDescriptionTypeDefault
durationdurationDetermines the duration before the toast auto-dismisses (in milliseconds). If set, the toast will auto-dismiss and show a close button. If not set (or set to 0), it will persist without a close button.numberundefined
intentintentThe visual intent or style of the toast, indicating the toast type."brand" | "brandInverse" | "default" | "error" | "success" | "warning"'default'
message (required)messageThe main message or text to be displayed in the toast.stringundefined

Events

EventDescriptionType
toastCustomEvent<{ visible: boolean; label: "dismissed" | "shown"; }>

Dependencies

Used by

  • eds-toast-manager

Depends on

Graph

graph TD;
  eds-toast --> eds-button
  eds-button --> eds-icon-wrapper
  eds-toast-manager --> eds-toast
  style eds-toast fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS