Skip to content

React based simple stepper. Very easy to implement inside any react based application.

Notifications You must be signed in to change notification settings

tauqeernasir/react-horizontal-stepper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-horizontal-stepper

Build Status

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

Screenshot

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

About

React based simple stepper. Very easy to implement inside any react based application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published