Skip to main content

Toast API

The Toast API displays a non-disruptive message that appears at the bottom of the interface to provide quick and short feedback on the outcome of an action. This API is modeled after the Web Notification API.

  • Success feedback: Show confirmation messages after successful save, create, or update operations.
  • Error notification: Display non-blocking error messages when operations fail.
  • Action buttons: Include action buttons in toasts for quick follow-up actions like undoing changes.
  • Temporary alerts: Communicate brief, time-limited messages that don't require user acknowledgment.

The Toast.show method displays a toast notification in the Shopify admin. It accepts a variety of options to customize the behavior.

required

Hides a Toast notification in the Shopify admin.

required

Displays a Toast notification in the Shopify admin.


Was this page helpful?