0.9.12 • Published 5 years ago

@easyguide/stepper v0.9.12

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

@easyguide/stepper

Camponents stepper ui

NPM JavaScript Style Guide

Install

npm install --save @easyguide/stepper

Usage

import React, {Component} from 'react'

import Stepper, {withStep} from '@easyguide/stepper'

const Step = withStep(({ previous, next, activeStep }) => (
  <section data-testid="step">
    <h1>{activeStep}</h1>
    <p>description</p>
    <button onClick={previous} data-testid="step-previous-button">
      previous
    </button>
    <button onClick={next} data-testid="step-next-button">
      next
    </button>
  </section>
))

class Example extends Component {
  render() {
    return (
      <Stepper>
        <Step stepName="step 1" />
        <Step stepName="step 2" />
      </Stepper>
    )
  }
}

License

MIT © iamtchelo

0.9.12

5 years ago

0.9.11

5 years ago

0.9.7

5 years ago

0.9.6

5 years ago

0.9.5

5 years ago

0.9.4

5 years ago

0.9.1

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago