mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
refactor(progress-indicator): make currentIndex reactive, add preventChangeOnClick
This commit is contained in:
parent
350aad83e0
commit
4113ae95da
6 changed files with 134 additions and 74 deletions
|
|
@ -3227,11 +3227,12 @@ import { ProgressIndicator } from "carbon-components-svelte";
|
|||
|
||||
### Props
|
||||
|
||||
| Prop name | Type | Default value | Description |
|
||||
| :----------- | :------------------- | :------------ | :---------------------------------------------------------------------------------------------- |
|
||||
| currentIndex | <code>number</code> | `0` | Specify the current step index. |
|
||||
| vertical | <code>boolean</code> | `false` | Set to `true` to use the vertical variant. |
|
||||
| spaceEqually | <code>boolean</code> | `false` | Set to `true` to specify whether the progress steps should be split equally in size in the div. |
|
||||
| Prop name | Type | Default value | Description |
|
||||
| :------------------- | :------------------- | :------------ | :---------------------------------------------------------------------------------------------- |
|
||||
| currentIndex | <code>number</code> | `0` | Specify the current step index. |
|
||||
| vertical | <code>boolean</code> | `false` | Set to `true` to use the vertical variant. |
|
||||
| spaceEqually | <code>boolean</code> | `false` | Set to `true` to specify whether the progress steps should be split equally in size in the div. |
|
||||
| preventChangeOnClick | <code>boolean</code> | `false` | Set to `true` to prevent updating `currentIndex`. |
|
||||
|
||||
### Slots
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue