# SbStep A single step component used within SbStepper. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Label | string | "" | Step label text | | Description | string? | null | Step description text | | Optional | bool | false | Whether the step is optional | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | Icon | RenderFragment | Custom icon for the step indicator | | ChildContent | RenderFragment | Step content | ## Cascading Parameters | Parameter | Type | Description | |-----------|------|-------------| | Parent | SbStepper | Parent stepper container | ## CSS Classes - `sb-step-content` - Step content wrapper ## Examples ### Basic Usage ```razor Content for step 1 Content for step 2 ``` ### With Description ```razor ``` ### With Custom Icon ```razor Enter your shipping details ``` ### Optional Step ```razor This step is required This step can be skipped Review and confirm ``` ### Form Wizard Example ```razor English Spanish French Personal Information @firstName @lastName @email Shipping Address @address @city, @state @zip ``` ### With Validation ```razor Continue @code { private AccountModel accountModel = new(); private void GoToNextStep() { currentStep++; } } ```
Content for step 1
Content for step 2
Enter your shipping details
This step is required
This step can be skipped
Review and confirm