docs(progress-indicator): add programmatic usage example

This commit is contained in:
Eric Liu 2020-11-20 09:06:20 -08:00
commit 365c16a0d1
2 changed files with 15 additions and 12 deletions

View file

@ -53,6 +53,12 @@ Set `preventChangeOnClick` to `true` to prevent this behavior.
/>
</ProgressIndicator>
### Programmatic usage
When programmatically updating the `currentIndex`, keep in mind that only completed steps should be selectable.
<FileSource src="/framed/ProgressIndicator/ProgrammaticProgressIndicator" />
### Spaced-equally
<ProgressIndicator spaceEqually>