Setup and dispatch

Import the Provider and Toast component from @shopify/app-bridge-react. Only one Provider is needed for your application.


Name Type Description Required
content string The content that should appear in the toast message Yes
duration number The length of time in milliseconds the toast message should persist. Defaults to 5000.
error boolean Display an error-styled toast
onDismiss () => void Callback when the dismiss icon is clicked Yes