0.0.6 • Published 5 years ago

@cypherlab/react-stepbar v0.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

DEPRECATED check https://github.com/cypherlab/react-flow

@cypherlab/react-stepbar

Install

npm i @cypherlab/react-stepbar

Usage

See Live demo
See Code example

import StepBar from '@cypherlab/react-stepbar'

const props = {
    steps: ['Cart', 'Shipping', 'Recap', 'Payment']
  , theme: 'dark' 
  , onRef: ref => (window['myStepBar'] = ref)
}

// render
<StepBar {...props} />

// ref usage
window['myStepBar'].setStep(3)

Table options

optioninfo
stepssteps data. array of anything. required
onRef
onStep
themepredefined theme

Methods

optioninfo
setStep

Test

You can play with the component in the browser via the index.html.

(yarn|npm) run dev
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago