0.2.1 • Published 5 years ago

react-horizontal-stepper v0.2.1

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

react-horizontal-stepper

Build Status

A very light weight and simple horizontal stepper for react apps.

Screenshot

npm.io

Insatallation

npm install --save react-horizontal-stepper
# or
yarn add react-horizontal-stepper

Then just import into your file as:

import { Stepper } from "react-horizontal-stepper";

Usage

const getSteps = () => ['Step 1', 'Step 2']

render() {
  return (
    <Stepper
      currentStep={currentStep}
      steps={getSteps()}
      fontFamily="Roboto"
      textColor="#fff"
      activeColor="yellow"
      onItemClick={(step, name) => {
        console.log(`${step} has name '${name}'`)
      }}
    />
  );
}
0.2.1

5 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago