Skip to main content

Toast

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.

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

Anchor to message
message
string
required

The Toast.hide method hides a Toast notification. This is not required to be called as the Toast notification will automatically hide after the duration has elapsed.

string
required

Examples
shopify.toast.show('Message sent');

Preview

Was this page helpful?