Theme app embed activation

Pro

Guide merchants to the theme editor and verify the embed status for the selected theme.

Install

Installation

Install command

Writes app/components/theme-app-embed-activation.tsx and adds @shopify/polaris-types@2.0.0 once authenticated.

API reference

heading
stringWrap 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.
Optional
themeRequired
ActivationThemeSupply 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
autoCheckOnReturn
booleanAutomatically re-check status when the merchant returns focus from the theme editor.
true
picker
{ themes: readonly ActivationTheme[]; onSelect: (id: string) => void }Enable selection when more than one theme is supported.
Fixed theme
embedName / steps / media
string / readonly string[] / ReactNodeName the app embed block toggle, display numbered setup instructions while inactive or unknown, and render optional illustrative preview media.
Optional
instructions / labels
ReactNode / 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.