1.0.0 โข Published 4 years ago
@ndozhh/stepper-js v1.0.0
Installation
Install the NPM package:
- Using yarn
yarn add @ndozhh/stepper-js
- Using npm
npm install @ndozhh/stepper-js
Usage
This example is built using MUI components
See the example code here
API
Property | Type | Description |
---|---|---|
currentStep | number | Current step of the stepper (zero based) |
isFirstStep | boolean | Indicates whether the stepper is in the first step |
isLastStep | boolean | Indicates whether the stepper is in the last step |
isFinished | boolean | Indicates whether the stepper is completed |
isCurrentStep | (stepIndex: number) => boolean | Check if a given index is the current step |
isStepCompleted | (stepIndex: number) => boolean | Check if a given index has been completed |
isStepSkipped | (stepIndex: number) => boolean | Check if a given index has been skipped |
onNext | () => void | Go to the next step |
onPrevious | () => void | Go to the previous step |
onStep | (stepIndex: number) => void | Go to the provided step |
onSkip | (stepIndex: number) => void | Skip the given step |
onReset | () => void | Reset the stepper to its initial state |
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
1.0.0-beta.3
4 years ago
1.0.0-beta.4
4 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.1
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago