Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stepper-react

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stepper-react

![version](https://img.shields.io/npm/v/stepper-react?color=brightgreen) ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/NishantArgade/stepper-react/Release/master) ![David](https://img.shields.io/david/NishantArgade/stepp

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Stepper-React

version GitHub Workflow Status (branch) David David License Downloads

Stepper-React is a flexible, customizable step progress indicator for your React applications. It's designed to be easy to use and integrate into your projects, with a clean and modern design.

stepper-react

Features

  • Fully customizable steps
  • Responsive design
  • Easy to integrate
  • Supports both TypeScript and JavaScript
  • Lightweight: The package is designed to be lightweight and efficient, ensuring it doesn't add unnecessary bloat to your project.

Installation

You can install Stepper-React using npm:

npm install stepper-react

Usage

Here's a basic example of how to use Stepper-React:

import Stepper from 'stepper-react';

const steps = [
  {topLabel: 'Step 1', bottomLabel: 'Start', content: 'This is the first step.'},
  {topLabel: 'Step 2', bottomLabel: 'Process', content: 'This is the second step.'},
  {topLabel: 'Step 3', bottomLabel: 'Finish', content: 'This is the final step.'},
];

function App() {
  return <Stepper steps={steps} />;
}

Stepper Props

PropTypeDefaultDescription
activeStepnumber1The current active step.
stepsarray of Step objects[]The steps for the stepper. Each step is an object with topLabel, bottomLabel, and content properties.
containerWidthnumber7The width of the container.
heightforMobileStepperstring"5rem"The height for the stepper in mobile view.
topLabelFontSizestring"0.7rem"The font size of the top label.
bottomLabelFontSizestring"0.7rem"The font size of the bottom label.
contentFontSizestring"0.7rem"The font size of the content.
topLabelFontColorstring"rgb(114, 114, 114)"The color of the top label.
bottomLabelFontColorstring"rgb(114, 114, 114)"The color of the bottom label.
contentFontColorstring"rgb(114, 114, 114)"The color of the content.
stepperWrapperBackgroundColorstring"rgb(255, 255, 255)"The background color of the stepper wrapper.
stepperContentWrapperBackgroundColorstring"rgb(255, 255, 255)"The background color of the stepper content wrapper.

Each Step object in the steps array has the following properties:

PropertyTypeDescription
topLabelstringThe top label for the step.
bottomLabelstringThe bottom label for the step.
contentReactNodeThe content for the step.

Contributing

We welcome contributions!

License

Stepper-React is MIT licensed.

Keywords

FAQs

Package last updated on 08 Feb 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc