mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
docs(progress-indicator): add programmatic usage example
This commit is contained in:
parent
c513279751
commit
365c16a0d1
2 changed files with 15 additions and 12 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue