0.0.8 • Published 4 years ago

rc-wizard-2 v0.0.8

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

rc-wizard-2


React Wizard Component

NPM version Dependency Status devDependency Status npm download

Development

npm install
npm start

Example

http://localhost:8000/examples/

online example: http://xuqingkuang.github.io/rc-wizard/

install

rc-wizard

Usage

import React from 'react';
import Wizard from 'rc-wizard';
const Test = () => {
  return (
    <Wizard id="test" onDone={() => { alert('Wizard is done'); }}>
      <Wizard.Step key="1">
        I am the first page.
      </Wizard.Step>
      <Wizard.Step key="2">
        I am the second page.
      </Wizard.Step>
      <Wizard.Step key="3">
        I am the third page.
      </Wizard.Step>
    </Wizard>
  )
}
React.render(<Test />, document.getElementById('container'));

API

Wizard class props

Wizard.Step class props

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-wizard is released under the MIT license.