Onboarding steps
UnderstoryUsage
The import, then a use to start from. Both copy as they are.
Import
import { SplitLayout } from "@/components/layout/SplitLayout";When to use
Use it for
- The get-started flow:
SplitLayoutputs the steps on the left and a live preview of the site on the right. - Each choice updates the preview at once, so people see the result before they commit.
- Feature and layout pickers are cards with one clear choice each.
Avoid
- Asking for what the flow can find on its own. Detect it, then confirm.
- A step without a preview of what it changes.
Accessibility
Checks
- Every choice has a text label, and the preview is never the only place a choice shows.
API
Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.
SplitLayout
COMPONENTS.md.FeatureCard
Its stories don't declare
argTypes, so no props are listed. The variants show its states.Also exportsFeatureStepContext
VariantsDefaultEnabledWithContentWithErrorLoadingWithChipWithInfoTooltipDisabledWithReasonInteractiveMultipleFeaturesFoldedWithoutToggle
LandingPageLayoutSelector
Its stories don't declare
argTypes, so no props are listed. The variants show its states.VariantsDefaultSideBySideSelected
ColorsAndLogosCard
Its stories don't declare
argTypes, so no props are listed. The variants show its states.VariantsDefault