

Every state


default


focus


error


done


narrow


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| steps | { id; title; description?; state?: "error"; optional? }[] | – | The steps; state only flags an error, the rest follows `current` |
| current | number | – | Zero-based current step (controlled); a value equal to the step count means all done |
| defaultCurrent | number | – | Starting step when uncontrolled |
| onCurrentChange | (index: number) => void | – | Called when a done step or the compact back button is used |
| disabled | boolean | – | Turns the done steps and back button off |
| showBack | boolean | true | Show the back button in the compact header |
| label | string | – | Accessible name of the list |
| stepLabel | string | – | Word before the step number |
| ofLabel | string | – | Word between the number and the total |
| backLabel | string | – | Name of the compact back button |
| completeLabel | string | – | Compact text when every step is done |
| optionalLabel | string | – | Text under an optional step |


