1.0.0 โ€ข Published 3 years ago

@ndozhh/stepper-js v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

Install the NPM package:

  1. Using yarn
    yarn add @ndozhh/stepper-js
  2. Using npm
    npm install @ndozhh/stepper-js

Usage

This example is built using MUI components

See the example code here

API

PropertyTypeDescription
currentStepnumberCurrent step of the stepper (zero based)
isFirstStepbooleanIndicates whether the stepper is in the first step
isLastStepbooleanIndicates whether the stepper is in the last step
isFinishedbooleanIndicates whether the stepper is completed
isCurrentStep(stepIndex: number) => booleanCheck if a given index is the current step
isStepCompleted(stepIndex: number) => booleanCheck if a given index has been completed
isStepSkipped(stepIndex: number) => booleanCheck if a given index has been skipped
onNext() => voidGo to the next step
onPrevious() => voidGo to the previous step
onStep(stepIndex: number) => voidGo to the provided step
onSkip(stepIndex: number) => voidSkip the given step
onReset() => voidReset the stepper to its initial state

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Juan David ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

1.0.0-beta.3

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago