Stepper

A keyboard accessible stepper component.

Installation

Usage

Icons

Add an icon to the Indicator component to display an icon.

Vertical

Add orientation="vertical" to the Nav component to make the stepper vertical.

Form

Create a multi-step form with the Stepper component.

API Reference

Stepper.

Root

The root component of the stepper. Manages the current step state.

PropTypeDefault
step? $bindable
number -
children?
Snippet -
Stepper.

The navigation container for the stepper. Controls the orientation of the stepper.

PropTypeDefault
orientation?
enum horizontal
Stepper.

Item

A single step item in the stepper. Each item represents one step in the process.

PropTypeDefault
id?
string -
Stepper.

Trigger

The clickable trigger button for a step. Allows users to navigate to a specific step.

PropTypeDefault
ref? $bindable
HTMLButtonElement null
onclick?
function -
onkeydown?
function -
children?
Snippet -
Stepper.

Indicator

The visual indicator for a step (usually displays the step number or an icon).

PropTypeDefault
children?
Snippet -
Stepper.

Separator

The visual separator between steps. Automatically hidden for the last step.

PropTypeDefault
children?
Snippet -
Stepper.

Title

The title text for a step.

PropTypeDefault
children?
Snippet -
Stepper.

Description

The description text for a step.

PropTypeDefault
children?
Snippet -
Stepper.

Next

A button component that navigates to the next step. Automatically disabled when on the last step.

PropTypeDefault
disabled?
boolean false
variant?
enum default
size?
enum default
child?
Snippet -
children?
Snippet -
Stepper.

Previous

A button component that navigates to the previous step. Automatically disabled when on the first step.

PropTypeDefault
disabled?
boolean false
variant?
enum outline
size?
enum default
child?
Snippet -
children?
Snippet -