JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q26246F
  • License MIT

@rahsheen/react-wizard React component

Package Exports

  • @rahsheen/react-wizard

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rahsheen/react-wizard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@rahsheen/react-wizard

Travis npm package Coverage Status

@rahsheen/react-wizard is a flexible wizard component which can be used with react or react-native.

Making use of render props, @rahsheen/react-wizard allows you to control exactly how each step is rendered.

Example

<Wizard>
  <Wizard.Step>
    {({ nextStep, prevStep }) => {
      return (
        <div>
          <h2>This is Step 1</h2>
          <button onClick={nextStep}>Next</button>
        </div>
      );
    }}
  </Wizard.Step>
  <Wizard.Step>
    {({ submit, prevStep }) => (
      <div>
        <h2>This is Step 2</h2>
        <button onClick={prevStep}>Back</button>
        <button onClick={onSubmit}>Finish</button>
      </div>
    )}
  </Wizard.Step>
</Wizard>