UNPKG

@wix/design-system

Version:

@wix/design-system

30 lines (27 loc) 847 B
### dataHook - type: string - description: Hook for testing purposes. ### onClick - type: (index: number) => void - description: Event triggered on step click: `onClick(stepIndex)` ### activeStep - type: number - description: Index of the active step. ### steps - type: StepperStep[] - description: An array of steps, where each step is an object with the following properties: - `text` - step title text (required). - `type` - step type (`completed`, `disabled`, `error` or default `normal`). ### type - type: "text" | "circle" - description: Style type. - default: 'circle' ### fit - type: "stretched" | "compact" - description: Fit mode for steps. In `stretched` mode the component will grow to fill parent container width. - default: 'compact' ### size - type: "small" | "medium" - description: Sets the size of the items - default: 'small'