Skip to content

Commit

Permalink
Update stepper.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kikipoulet authored Sep 2, 2024
1 parent c5ecf5b commit 498d278
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions docs/docs/documentation/controls/progress/stepper.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,41 @@

A bar that guides users through the steps of a task

## Show
<br/>

<img src="/controls/progress/stepper.gif" height="300px" width="300px"/>
<img src="https://sleekshot.app/api/download/9UWKAIevk5i2"/>

## Example

### XAML

```xml .axaml
<suki:Stepper Index="{Binding StepIndex}" Steps="{Binding Steps}" />
```

### ViewModel

```csharp
[ObservableProperty] private int _stepIndex = 1;
public IEnumerable<string> Steps { get; } =
["First Step", "Second Step", "Third Step"];
```

<br/>

## Alternative Style

<img src="https://sleekshot.app/api/download/siVzTBuU6zhn"/>

### XAML

```xml .axaml
<suki:Stepper AlternativeStyle="True" />
```

<br/>

## See Also

[Demo: SukiUI.Demo/Features/ControlsLibrary/ProgressView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/ControlsLibrary/ProgressView.axaml)

[API: Controls/Stepper.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/Stepper.axaml.cs)
[API: Controls/Stepper.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/Stepper.axaml.cs)

0 comments on commit 498d278

Please sign in to comment.