JSPM

react-stepper-component

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

React Stepper Component

Package Exports

  • react-stepper-component

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 (react-stepper-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-stepper-component

stepper component for react.js

png

Installation

npm install react-stepper-component --save

Usage

import Stepper from 'react-stepper-component';

// ...
handlerStepperClick(id){
    //id from Stepper.Content props 'id;
    console.log(id)

}

render() {
  return (
    <Stepper onClick={this.handlerStepperClick}>
        <Stepper.Content id="1" >
            <Stepper.Title>
                1
            </Stepper.Title>
            <Stepper.Detail>
                <Stepper.TitleHeadline >
                   Step One
                </Stepper.TitleHeadline>
                <Stepper.Description>
                    Description of step one
                </Stepper.Description>
            </Stepper.Detail>
        </Stepper.Content>
        <Stepper.Content id="2" active >
            <Stepper.Title>
                2
            </Stepper.Title>
            <Stepper.Detail>
                <Stepper.TitleHeadline>
                    Step Two
                </Stepper.TitleHeadline>
                <Stepper.Description>
                    Description of step Two
                </Stepper.Description>
            </Stepper.Detail>
        </Stepper.Content>

        <Stepper.Content  disabled>
            <Stepper.Title>
                3
            </Stepper.Title>
            <Stepper.Detail>
                <Stepper.TitleHeadline>
                     Step Three
                </Stepper.TitleHeadline>
                <Stepper.Description>
                     Description of step three
                </Stepper.Description>
            </Stepper.Detail>

        </Stepper.Content>
    </Stepper>
  );
}

Props

Property Type isRequired? Default Description
OnClick func required - Callback when content onClick
id string optional undefined indicator from container
disabled bool optional false disabled item stepper
active bool optional false indicator active of item stepper

License

MIT