0.1.3 • Published 6 years ago

react-wizard-step v0.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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

PropertyTypeDescriptionDefault
afterDoneComponentanyComponent after when done was clicked---
isShowStepBarboolShow step bartrue
isShowNumberboolShow number of steptrue
childrenshape({title:string, subTitle:string, handler:func})Children component each step---