Tesserae

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 wizard, with title, description and completion state.

Constructors

Constructor
StepperStep
public StepperStep(string title, IComponent content, string description = null)

Initializes a new instance of this class.

Properties

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>

Constructors

Constructor
Stepper
public Stepper(params StepperStep[] steps)

Initializes a new instance of this class.

Properties

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

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 Tesserae. All rights reserved.