)
}
export function WizardErrorStatePreview() {
const stepsWithError = DEMO_STEPS.map((s, i) => ({
...s,
error: i === 1,
}))
return (
Site
Resolve validation errors before continuing.
)
}
/** Edge-case stress test — overflow + guidance; not a product IA target. */
export function WizardManyStepsPreview() {
const { step, setStep, back, next } = useStepState(MANY_STEPS.length, 3)
return (
undefined} submitLabel="Finish" />
)
}
export function WizardScaleGuidancePreview() {
const guidance = [
{
range: "3 to 5 steps",
title: "Horizontal",
body: "Keep every top-level chapter visible. Use numbered markers when order matters.",
icon: "fa-arrow-right",
},
{
range: "6 to 8 steps",
title: "Vertical or regroup",
body: "Use a vertical rail for named chapters. First check whether related steps can become sections inside one chapter.",
icon: "fa-arrow-down",
},
{
range: "More than 8 steps",
title: "Restructure the flow",
body: "Group work into at most six top-level chapters, support drafts, and split independent jobs into separate routes. Use a vertical rail only when the sequence cannot change.",
icon: "fa-diagram-project",
},
]
return (
{guidance.map((item) => (
{item.range}
{item.title}
{item.body}
))}
)
}
/** All variants on one page for catalog / QA. */
export function WizardAllVariantsPreview() {
return (
Horizontal numbered
Horizontal icons
Horizontal compact
Vertical numbered
Vertical icons
Error state
Edge case: overflow (8 steps)
Stress test for scroll arrows and guidance — do not ship eight top-level chapters in product.