Theme app embed activation
Guide merchants to the theme editor and verify the embed status for the selected theme.
Installation
Writes app/components/theme-app-embed-activation.tsx and adds @shopify/polaris-types@2.0.0 once authenticated.
API reference
headingstringWrap the controls in a Polaris section card and display a themed status summary card when used standalone. Omit when embedded inside a setup guide step or your own section.OptionalthemeRequiredActivationThemeSupply the selected theme’s id, name, optional role, and last verified status (active, inactive or unknown).- Required
editorRequired{ href: string } | { onOpen: () => void }Supply the Shopify editor deep link for the selected theme or open it through your app.- Required
checkStatusRequired(id: string, signal: AbortSignal) => Promise<EmbedStatus>Read the embed status for this theme. A failed check shows the unknown state.- Required
onStatusChangeRequired(id: string, status: EmbedStatus) => voidStore the verified result in your app and update the theme prop.- Required
autoCheckOnReturnbooleanAutomatically re-check status when the merchant returns focus from the theme editor.truepicker{ themes: readonly ActivationTheme[]; onSelect: (id: string) => void }Enable selection when more than one theme is supported.Fixed themeembedName / steps / mediastring / readonly string[] / ReactNodeName the app embed block toggle, display numbered setup instructions while inactive or unknown, and render optional illustrative preview media.Optionalinstructions / labelsReactNode / partial label mapSupply setup instructions and localize status labels, action buttons, waitingForReturn, and checkedJustNow cues.Optional
Run under Shopify App Home AppProvider. Point polarisUrl to the Polaris 2.0 runtime.