rc-wizard-2
v0.0.8
Published
React wizard
Downloads
2
Maintainers
Readme
rc-wizard-2
React Wizard Component
Development
npm install
npm start
Example
http://localhost:8000/examples/
online example: http://xuqingkuang.github.io/rc-wizard/
install
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.