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 Stepper wizard, with title, description and completion state.
- Namespace
- Tesserae
Constructors
| Name | Description |
|---|---|
| StepperStep | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| Title | Gets or sets the title of the component. |
| Description | Gets or sets the description of the component. |
| Content | Gets or sets the content of the component. |
public string Description { get; set; }Gets or sets the description of the component.
public sealed class Stepper : ComponentBase<Stepper, HTMLElement>- Namespace
- Tesserae
- Inheritance
- ComponentBase<Stepper, HTMLElement> → Stepper
Constructors
| Name | Description |
|---|---|
| Stepper | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| CurrentStepIndex | Gets or sets the current step index. |
| CurrentStep | Gets or sets the current step. |
public int CurrentStepIndex { get ; set ; }Gets or sets the current step index.
Methods
| Name | Description |
|---|---|
| AddStep | Adds the given step to the component. |
| AddSteps | Adds the given steps to the component. |
| OnStepChange | Registers a callback invoked when the step change event fires. |
| SetStep | Sets the step of the component. |
| Next | Configures the component to next. |
| Previous | Configures the component to previous. |
| Render | Renders the component's root HTML element. |
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):