Setup guide
Guide merchants through setup one task at a time with Polaris progress, collapse, and dismissal.
Installation
Writes app/components/setup-guide.tsx and adds @shopify/polaris-types@2.0.0 once authenticated.
API reference
headingRequiredstringName the setup checklist section.- Required
descriptionstringProvide an optional subheading beneath the checklist heading.OptionalstepsRequiredreadonly SetupGuideStep[]Supply id, title, completed, optional description/optional/estimatedTime/badge/media, SetupGuideAction actions (supporting icon, loading, disabled), or custom content (such as ThemeAppEmbedActivation).- Required
collapsible / defaultOpen / onDismiss / onStepSelectboolean / boolean / () => void / (stepId: string | null) => voidAllow merchants to collapse the guide header (showing a Next up cue), dismiss the checklist from the header or completion banner, and observe step selection changes.collapsible: true, defaultOpen: trueonToggleComplete(stepId: string, completed: boolean) => voidEnable an optional Mark complete / Mark incomplete action on each step.OptionalprogressLabel / completedHeading / completedDescription / completedDismissLabel / completedLabel / pendingLabel / dismissLabel / markCompleteLabel / markIncompleteLabelfunction / stringLocalize the progress summary, completion banner copy and dismissal action, and step statuses.English
Run under Shopify App Home AppProvider. Point polarisUrl to the Polaris 2.0 runtime.