Stepper

A step-by-step flow with numbered steps and its own navigation.

Installation

bash
shellui-native add stepper

Platforms: MAUI · Avalonia. Also installs icon, button, button-variants.

Usage

Basic

Rendered with ShellUI for Blazor

Account

Your details

Plan

Pick a tier

Review

Confirm and finish

<ui:Stepper ConfirmText="Create workspace" Confirmed="OnConfirmed">
    <ui:StepperStep Title="Account" Description="Your details">
        <ui:Input Placeholder="shewart@shellui.dev" Keyboard="Email" />
    </ui:StepperStep>
    <ui:StepperStep Title="Plan" Description="Pick a tier">
        <ui:RadioGroup Value="pro">
            <ui:RadioGroupItem Value="free" Text="Free" />
            <ui:RadioGroupItem Value="pro" Text="Pro" />
            <ui:RadioGroupItem Value="team" Text="Team" />
        </ui:RadioGroup>
    </ui:StepperStep>
    <ui:StepperStep Title="Review" Description="Confirm and finish">
        <ui:ShellLabel Text="Everything looks good." Size="Sm" />
    </ui:StepperStep>
</ui:Stepper>
Avalonia, running in your browser

MAUI and Avalonia

  • MAUI shows only the active step's view. On Avalonia every step stays in the tree and only the active one is visible.
  • On Avalonia, the steps you have reached are tab stops, opened with Enter or Space.

API

Stepper

XAML children go to Steps.

Property Type Default Description
CurrentStep int 0 Zero-based index of the active step. Two-way bindable.
ShowNavigation bool true Shows the built-in previous / next buttons.
PreviousText string "Previous" Text of the previous button.
NextText string "Next" Text of the next button.
ConfirmText string "Confirm" Text of the confirm button.
Event Arguments Description
CurrentStepChanged int User input only: setting CurrentStep, or calling Next / Previous, from code doesn't raise it.
Confirmed — Raised by the Confirm button on the last step.
Method Description
Next() Moves to the next step.
Previous() Moves to the previous step.

StepperStep

Property Type Default Description
Title string — Heading text.
Description string — Supporting text under the title.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.