Gathering detailed insights and metrics for @lockistrike/react-progress-stepper
Gathering detailed insights and metrics for @lockistrike/react-progress-stepper
Gathering detailed insights and metrics for @lockistrike/react-progress-stepper
Gathering detailed insights and metrics for @lockistrike/react-progress-stepper
npm install @lockistrike/react-progress-stepper
Typescript
Module System
Node Version
NPM Version
JavaScript (98.78%)
HTML (1.22%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Stars
47 Commits
3 Forks
1 Watchers
3 Branches
2 Contributors
Updated on Feb 29, 2024
Latest Version
0.3.9
Package Id
@lockistrike/react-progress-stepper@0.3.9
Unpacked Size
81.42 kB
Size
27.21 kB
File Count
8
NPM Version
8.8.0
Node Version
14.17.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
3
React Progress Stepper
Minimal and beautiful stepper for React.
1$ npm i react-progress-stepper 2$ yarn add react-progress-stepper
1import React from 'react'; 2import { 3 Stepper, 4 Step, 5 useStepper, 6} from "react-progress-stepper"; 7 8export default const App = () => { 9 const { step, incrementStep, decrementStep } = useStepper(0, 3); 10 11 return ( 12 <> 13 <Stepper step={step}> 14 <Step></Step> 15 <Step></Step> 16 <Step></Step> 17 </Stepper> 18 <button onClick={decrementStep}>Prev</button> 19 <button onClick={incrementStep}>Next</button> 20 </> 21 ) 22}
Property | Type | Description |
---|---|---|
step | Integer | State to track the current step |
vertical | Boolean | Toggle vertical view |
dark | Boolean | Toggle dark mode |
numbered | Boolean | Toggle if each step is numbered or not |
theme | Object | Customize the appearance of the stepper |
Property | Type | Description |
---|---|---|
customContent | Function | Override step circle content |
You can customize the content of each step, as the example below:
1import React from 'react'; 2import { 3 Stepper, 4 Step, 5 useStepper, 6 StepNumber, 7 StepTitle, 8 StepStatus, 9 StepDescription, 10} from "react-progress-stepper"; 11 12export default const App = () => { 13const { step, incrementStep, decrementStep } = useStepper(0, 3); 14 15return ( 16 <> 17 <Stepper step={step}> 18 <Step> 19 <StepNumber /> 20 <StepTitle>Title</StepTitle> 21 <StepStatus /> 22 <StepDescription>Description</StepDescription> 23 </Step> 24 <Step> 25 <StepNumber /> 26 <StepTitle>Title</StepTitle> 27 <StepStatus /> 28 <StepDescription>Description</StepDescription> 29 </Step> 30 <Step> 31 <StepNumber /> 32 <StepTitle>Title</StepTitle> 33 <StepStatus /> 34 <StepDescription>Description</StepDescription> 35 </Step> 36 </Stepper> 37 </> 38 ) 39} 40
Property | Type | Description |
---|---|---|
text | String | Customize text |
StepTitle comes with no property, you can pass text as children.
Property | Type | Description |
---|---|---|
textProgress | String | Customize text |
textCompleted | String | Customize text |
textPending | String | Customize text |
StepDescription comes with no property, you can pass text as children.
Hook to handle the state of stepper easily, you could write your own logic to handle the state.
To work properly you need to provide two arguments to useStepper:
useStepper provides several utilities:
You can customize the appearance of the stepper in two ways:
1{ 2 light: { 3 step: { 4 pending: { 5 background: "#ededed", 6 color: "#a1a3a7", 7 }, 8 progress: { 9 background: "#3c3fed", 10 color: "#ffffff", 11 }, 12 completed: { 13 background: "#23c275", 14 color: "#ffffff", 15 }, 16 }, 17 content: { 18 pending: { 19 stepNumber: { color: "#a1a3a7" }, 20 title: { color: "#a1a3a7" }, 21 status: { background: "#f2f2f2", color: "#a1a3a7" }, 22 description: { color: "#a1a3a7" }, 23 }, 24 progress: { 25 stepNumber: { color: "#131b26" }, 26 title: { color: "#131b26" }, 27 status: { background: "#e7e9fd", color: "#3c3fed" }, 28 description: { color: "#131b26" }, 29 }, 30 completed: { 31 stepNumber: { color: "#131b26" }, 32 title: { color: "#131b26" }, 33 status: { background: "#e9faf2", color: "#23c275" }, 34 description: { color: "#131b26" }, 35 }, 36 }, 37 progressBar: { 38 pending: { 39 background: "#ededed", 40 }, 41 progress: { 42 background: "#e7e9fd", 43 fill: "#3c3fed", 44 }, 45 completed: { 46 background: "#e9faf2", 47 fill: "#23c275", 48 }, 49 }, 50 }, 51 dark: { 52 step: { 53 pending: { 54 background: "#1a1a1a", 55 color: "#767676", 56 }, 57 progress: { 58 background: "#19b6fe", 59 color: "#ffffff", 60 }, 61 completed: { 62 background: "#23c275", 63 color: "#ffffff", 64 }, 65 }, 66 content: { 67 pending: { 68 stepNumber: { color: "#767676" }, 69 title: { color: "#767676" }, 70 status: { background: "#1a1a1a", color: "#767676" }, 71 description: { color: "#767676" }, 72 }, 73 progress: { 74 stepNumber: { color: "#ece4d9" }, 75 title: { color: "#ece4d9" }, 76 status: { background: "#08374c", color: "#19b6fe" }, 77 description: { color: "#ece4d9" }, 78 }, 79 completed: { 80 stepNumber: { color: "#ece4d9" }, 81 title: { color: "#ece4d9" }, 82 status: { background: "#0b3a23", color: "#23c275" }, 83 description: { color: "#ece4d9" }, 84 }, 85 }, 86 progressBar: { 87 pending: { 88 background: "#1a1a1a", 89 }, 90 progress: { 91 background: "#08374c", 92 fill: "#19b6fe", 93 }, 94 completed: { 95 background: "#0b3a23", 96 fill: "#23c275", 97 }, 98 }, 99 }, 100}
1.step { 2 width: 3em; 3 height: 3em; 4} 5 6.step.progress { 7 background: #6ab04c; 8}
React Progress Stepper is released under the MIT license, feel free to use it, share and modify.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
85 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More