react-horizontal-stepper

0.2.1 • Public • Published

react-horizontal-stepper

Build Status

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

Screenshot

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}'`)
      }}
    />
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i react-horizontal-stepper

Weekly Downloads

105

Version

0.2.1

License

MIT

Unpacked Size

5.56 kB

Total Files

5

Last publish

Collaborators

  • jskod