Setup guide

Pro

Guide merchants through setup one task at a time with Polaris progress, collapse, and dismissal.

Install

Installation

Install command

Writes app/components/setup-guide.tsx and adds @shopify/polaris-types@2.0.0 once authenticated.

API reference

headingRequired
stringName the setup checklist section.
Required
description
stringProvide an optional subheading beneath the checklist heading.
Optional
stepsRequired
readonly 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 / onStepSelect
boolean / 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: true
onToggleComplete
(stepId: string, completed: boolean) => voidEnable an optional Mark complete / Mark incomplete action on each step.
Optional
progressLabel / completedHeading / completedDescription / completedDismissLabel / completedLabel / pendingLabel / dismissLabel / markCompleteLabel / markIncompleteLabel
function / 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.