Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Toast API

The Toast API provides temporary notification functionality for POS UI extensions, allowing you to display brief, non-intrusive messages to users for feedback, confirmations, and status updates that automatically disappear after a specified duration. Toast messages appear as overlay notifications that don't interrupt the user's workflow.

  • Action feedback: Provide immediate feedback for successful data saves or API call completions.
  • Error messages: Display error messages and warnings without blocking workflow.
  • Progress updates: Show progress updates for long-running operations.
  • Status changes: Communicate system status changes like connectivity issues.
Support
Targets (25)

The Toast API object provides temporary notification functionality for POS UI extensions. Access the following properties on the API object to display brief, non-intrusive messages for feedback, confirmations, and status updates.

(content: string, options?: ) => void
required

Displays a toast notification with the specified text content. The message appears as a temporary overlay that automatically dismisses after the specified duration. Use for providing immediate user feedback, confirming actions, or communicating status updates without interrupting the user's workflow.


  • Use appropriate timing: Choose duration values that give users enough time to read the message without keeping notifications visible longer than necessary.
  • Provide meaningful feedback: Use toast messages to confirm successful actions, explain errors clearly, or communicate important status changes that users need to know about.
  • Avoid overuse: Reserve toast notifications for important feedback and avoid showing multiple toasts simultaneously, as this can overwhelm users and reduce the effectiveness of the notifications.

  • Toast messages are temporary and can't be made persistent. For important information that users need to reference later, consider using other UI components or storage mechanisms.
  • Multiple toast messages may overlap or interfere with each other if shown in rapid succession. Consider queuing or spacing out notifications appropriately.
  • Toast content is limited to plain text and can't include rich formatting, links, or interactive elements.

Was this page helpful?