Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
stepper-react
Advanced tools
![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
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.
You can install Stepper-React using npm:
npm install stepper-react
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} />;
}
Prop | Type | Default | Description |
---|---|---|---|
activeStep | number | 1 | The current active step. |
steps | array of Step objects | [] | The steps for the stepper. Each step is an object with topLabel , bottomLabel , and content properties. |
containerWidth | number | 7 | The width of the container. |
heightforMobileStepper | string | "5rem" | The height for the stepper in mobile view. |
topLabelFontSize | string | "0.7rem" | The font size of the top label. |
bottomLabelFontSize | string | "0.7rem" | The font size of the bottom label. |
contentFontSize | string | "0.7rem" | The font size of the content. |
topLabelFontColor | string | "rgb(114, 114, 114)" | The color of the top label. |
bottomLabelFontColor | string | "rgb(114, 114, 114)" | The color of the bottom label. |
contentFontColor | string | "rgb(114, 114, 114)" | The color of the content. |
stepperWrapperBackgroundColor | string | "rgb(255, 255, 255)" | The background color of the stepper wrapper. |
stepperContentWrapperBackgroundColor | string | "rgb(255, 255, 255)" | The background color of the stepper content wrapper. |
Each Step object in the steps array has the following properties:
Property | Type | Description |
---|---|---|
topLabel | string | The top label for the step. |
bottomLabel | string | The bottom label for the step. |
content | ReactNode | The content for the step. |
We welcome contributions!
Stepper-React is MIT licensed.
FAQs
![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
We found that stepper-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.