Stepper
Description
A component to display a step-by-step process
Steppers (also known as Wizards) guide users through a multi-step process by breaking it down into smaller, logical chunks.
They manage the visibility of content for each step and provide built-in navigation controls (Previous/Next) while tracking the current progress.
API reference
public sealed class StepperStepA single step in a wizard, with title, description and completion state.
Constructors
Properties
public string Description { get; set; }Gets or sets the description of the component.
public sealed class Stepper : ComponentBase<Stepper, HTMLElement>Constructors
Properties
public int CurrentStepIndex { get ; set ; }Gets or sets the current step index.
Methods
public Stepper AddStep(string title, IComponent content, string description = null)Adds the given step to the component.
public Stepper AddSteps(params StepperStep[] steps)Adds the given steps to the component.
public Stepper OnStepChange(Action<Stepper> onStepChange)Registers a callback invoked when the step change event fires.
public Stepper SetStep(int index, bool raiseEvent = true)Sets the step of the component.
Sample
The following self-contained example demonstrates the Stepper component (adapted from the Tesserae samples project):