From ac1306edd98a48c3ca70efb4dfb6c17187f0b89c Mon Sep 17 00:00:00 2001 From: Mats Bosson Date: Mon, 30 Mar 2026 03:48:47 +0700 Subject: [PATCH] Fix showcase Wizard nesting StepContent requires WizardStepContext provided by Wizard.Step. --- packages/showcase/src/sections/navigation.tsx | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/packages/showcase/src/sections/navigation.tsx b/packages/showcase/src/sections/navigation.tsx index 6fd9bcd..8ff34a3 100644 --- a/packages/showcase/src/sections/navigation.tsx +++ b/packages/showcase/src/sections/navigation.tsx @@ -131,33 +131,29 @@ function NavigationMenuDemo() { return content; } -/** Wizard step indicators helper for the wizard demo. */ -function WizardSteps() { - const content = ( - - - {(label, i) => ( - - - {i() + 1} - - {label} - - )} - - - ); - return content; -} +const wizardSteps = ["Details", "Review", "Confirm"]; /** Wizard demo with 3-step flow. */ function WizardDemo() { const content = ( - - Step 1: Enter your details here. - Step 2: Review your information. - Step 3: Confirm and submit. + + + {(label, i) => ( + +
+ + {i() + 1} + + {label} +
+ + Step {i() + 1}: {label} + +
+ )} +
+
Previous Next