npm.io
0.1.3 • Published 8 years ago

react-wizard-step

Licence
MIT
Version
0.1.3
Deps
6
Size
130 kB
Vulns
0
Weekly
0

react-wizard-step

Wizard step build with React.

Installation

npm install react-wizard-step

Example

import React from 'react'
import WizardStep from 'react-wizard-step'

const Example = () => (
  <WizardStep>
    <Component title="Title 1" subTitle="Sub title 1" />
    <Component title="Title 2" subTitle="Sub title 2" />
    <Component title="Title 3" subTitle="Sub title 3" handler={() => alert('success')} />
  </WizardStep>
)

export default Example
Options
Property Type Description Default
afterDoneComponent any Component after when done was clicked ---
isShowStepBar bool Show step bar true
isShowNumber bool Show number of step true
children shape({title:string, subTitle:string, handler:func}) Children component each step ---

Keywords