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

class

StepperStep

public sealed class StepperStep

A single step in a Stepper wizard, with title, description and completion state.

Namespace
Tesserae

Constructors

NameDescription
StepperStepInitializes a new instance of this class.
Constructor
StepperStep
public StepperStep(string title, IComponent content, string description = null)

Initializes a new instance of this class.

Properties

NameDescription
TitleGets or sets the title of the component.
DescriptionGets or sets the description of the component.
ContentGets or sets the content of the component.
Property
StepperStep.Title
public string Title { get; set; }

Gets or sets the title of the component.

Property
StepperStep.Description
public string Description { get; set; }

Gets or sets the description of the component.

Property
StepperStep.Content
public IComponent Content { get; set; }

Gets or sets the content of the component.

class

Stepper

public sealed class Stepper : ComponentBase<Stepper, HTMLElement>
Namespace
Tesserae
Inheritance
ComponentBase<Stepper, HTMLElement> → Stepper

Constructors

NameDescription
StepperInitializes a new instance of this class.
Constructor
Stepper
public Stepper(params StepperStep[] steps)

Initializes a new instance of this class.

Properties

NameDescription
CurrentStepIndexGets or sets the current step index.
CurrentStepGets or sets the current step.
Property
Stepper.CurrentStepIndex
public int CurrentStepIndex { get ; set ; }

Gets or sets the current step index.

Property
Stepper.CurrentStep
public StepperStep CurrentStep

Gets or sets the current step.

Methods

NameDescription
AddStepAdds the given step to the component.
AddStepsAdds the given steps to the component.
OnStepChangeRegisters a callback invoked when the step change event fires.
SetStepSets the step of the component.
NextConfigures the component to next.
PreviousConfigures the component to previous.
RenderRenders the component's root HTML element.
Method
Stepper.AddStep
public Stepper AddStep(string title, IComponent content, string description = null)

Adds the given step to the component.

Method
Stepper.AddSteps
public Stepper AddSteps(params StepperStep[] steps)

Adds the given steps to the component.

Method
Stepper.OnStepChange
public Stepper OnStepChange(Action<Stepper> onStepChange)

Registers a callback invoked when the step change event fires.

Method
Stepper.SetStep
public Stepper SetStep(int index, bool raiseEvent = true)

Sets the step of the component.

Method
Stepper.Next
public Stepper Next()

Configures the component to next.

Method
Stepper.Previous
public Stepper Previous()

Configures the component to previous.

Method
Stepper.Render
public override HTMLElement Render()

Renders the component's root HTML element.

Sample

The following self-contained example demonstrates the Stepper component (adapted from the Tesserae samples project):

See also

© 2026 Curiosity. All rights reserved.