1.1.2 • Published 1 year ago
react-state-stepper v1.1.2
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
});