Package Exports
- react-state-stepper
- react-state-stepper/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-state-stepper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
state-stepper
A simple state stepper component for React, which is manually or timer controlled
Installation
npm install state-stepper
Manual Usage
const {meta, current, next} = useStateStepper({steps: ['a', 'b', 'c']});
Timed Usage
const {meta, current, next} = useStateStepper({
steps: [
{name: 'a', timer: 1000}, // in milliseconds
{name: 'b', timer: 1500}, // in milliseconds
{name: 'c', timer: 2000} // in milliseconds
],
loop: true
});