@uptimeventures/react-wizard

1.2.1 • Public • Published

Wizard

CI Status Badge License Made by Uptime Ventures badge

Lightweight, multi-step flow-control for React and React Native.

Installation

npm install @uptimeventures/react-wizard

Usage

import React from 'react'
import Wizard, { Content, Navigation } from '@uptimeventures/react-wizard'

const App = () =>
  <Wizard
    steps={[
      { scene: 'welcome', component: () => <h2>Welcome</h2> },
      () => <h2>Step Two</h2>
    ]}
    component={() =>
      <div>
        <h1>Wizard</h1>
        <Content/>
        <Navigation
          render={({ prev, next }) =>
            <div>
              <button onClick={prev}>Previous</button>
              <button onClick={next}>Next</button>
            </div>
          }
        />
      </div>
    }
  />

License

© 2017 Uptime Ventures, Ltd. All rights reserved. Released under the 3-Clause BSD License.

Package Sidebar

Install

npm i @uptimeventures/react-wizard

Weekly Downloads

0

Version

1.2.1

License

SEE LICENSE IN LICENSE

Last publish

Collaborators

  • secretfader
  • renovate