SusStepper

Multi-step progress header — titles, icons, active index.
Package
SusKit · Atoms (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Model | Prop<int> | 0 | v-model |
Direction | Prop<string> | "horizontal" | v-model |
Variant | Prop<string> | "default" | v-model |
NonLinear | Prop<bool> | false | v-model |
ShowStepNumber | Prop<bool> | true | v-model |
Slots
| Name |
|---|
(default) |
Events
| Name | Field | Payload |
|---|---|---|
StepChanged | OnStepChanged | int |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
keyboard-focussus-steppersus-stepper__contentsus-stepper__dividersus-stepper__divider--activesus-stepper__headerssus-stepper__iconsus-stepper__indicatorsus-stepper__infosus-stepper__numbersus-stepper__stepsus-stepper__step--activesus-stepper__step--completesus-stepper__step--errorsus-stepper__subtitlesus-stepper__titlesus-stepper--alt-labelssus-stepper--non-linearsus-stepper--verticalunity-labelunity-text-element
Usage
Items are set in code (List<StepItem>).
csharp
var stepper = new SusStepper();
stepper.Items.Value = new List<SusStepper.StepItem>
{
new() { Title = "Account", Subtitle = "Credentials", Icon = "user" },
new() { Title = "Squad", Subtitle = "Roster", Icon = "users" },
new() { Title = "Ready", Subtitle = "Confirm", Icon = "check" },
};
stepper.Model.Value = 0;
stepper.Direction.Value = "horizontal";
stepper.ShowStepNumber.Value = true;
stepper.OnStepChanged += index => { /* … */ };| Prop | Role |
|---|---|
Items | List<StepItem> — Title, Subtitle, Icon, Complete, Error |
Model | Active step index (0-based) |
Direction | horizontal | vertical |
NonLinear | Allow jumping to any step |
ShowStepNumber | Number badge in the header |
Notes
- Default slot holds the body for the active step.
- Mark past steps with
Complete/Erroron eachStepItem.