Socket
Socket
Sign inDemoInstall

react-stepper-stylable

Package Overview
Dependencies
172
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-stepper-stylable

Flexible and highly customizable stepper component for React. An improvement of react-stepper


Version published
Weekly downloads
6
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-stepper-stylable

Flexible and highly customizable stepper component for React. An improvement of react-stepper

Installation

npm install react-stepper-stylable --save
yarn add react-stepper-stylable

Then just add import { Stepper } from 'react-stepper-stylable'; into your file.

Screenshot

Usage

render() {
  const steps: Array<IStep> = [
    { title: 'Step1', content: <Component1 />, icon: IconOne },
    { title: 'Step2', content: <Component2 />, icon: IconTwo },
    { title: 'Step3', content: <Component3 />, icon: iconThree },
  ];
  return (
    <div>
      <Stepper steps={steps} activeStep={1} />
    </div>
  );
}

See full example here

API

Main Component

namedescriptiondefaulttype
activeStepActive step index, starts at 00number
stepsList of step objects (see below)array
activeColorActive circle color#5096FFstring
completeColorCompleted circle color#5096FFstring
defaultColorDefault circle color - not active or completed#E0E0E0string
activeTitleColorActive title color#000string
completeTitleColorCompleted title color#000string
defaultTitleColorDefault title color - not active or completed#757575string
circleFontColorCircle text color (for index)#FFFstring
sizeCircle size32number
circleFontSizeCircle text size16number
titleFontSizeTitle text size16number
circleTopTop margin of Stepper component24number
titleTopSpace between circle and title8number
defaultOpacityDefault circle opacity1string
completeOpacityCompleted circle opacity1string
activeOpacityActive circle opacity1string
defaultTitleOpacityDefault title opacity1string
completeTitleOpacityCompleted title opacity1string
activeTitleOpacityActive title opacity1string
barStyleStyle of bar separating stepssolidstring
defaultBorderColorDefault color of border surrounding circlestring
completeBorderColorColor of border surrounding completed circlestring
activeBorderColorColor of border surrounding active circlestring
defaultBorderStyleDefault style of border surrounding circlesolidstring
completeBorderStyleStyle of border surrounding completed circlesolidstring
activeBorderStyleStyle of border surrounding active circlesolidstring
defaultBarColorDefault color of bar separating circles#E0E0E0string
completeBarColorColor of bar connected to a completed step#E0E0E0string
lineMarginOffsetOffset for line margin4number
defaultBorderWidthDefault Border Width3number

Step Objects

namedescriptiondefaulttype
titleDisplayed text of the step below the numberundefinedstring
iconDisplayed icon of the stepundefinedimage/object
hrefLink to send them to on clickundefinedstring
onClickEvent handler for when the step is clickedundefinedfunction

Author

Hoslack Ochieng / @hoslack

License

MIT

FAQs

Last updated on 25 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc