Setup and open

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


Name Type Description Required
open boolean Whether the modal is open or not Yes
src string The url that will be loaded as the content of the modal
title string The content for the title of the modal
size "Small", "Medium", "Large" Controls the size of the modal
message string Message to display inside modal
primaryAction ActionProps Primary action
secondaryActions ActionProps[] Collection of secondary actions
onClose () => void Callback when the modal is closed


Name Type Description Required
content string Content the action displays
destructive boolean Should the action be styled as destructive
disabled boolean Should the action be disabled
external boolean Forces url to open in a new tab
target "ADMIN_PATH", "REMOTE", "APP" Where to display the target link
url string A destination to link to
onAction () => void Callback when an action takes place

On this page