
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-stepz
Advanced tools
npm install --save react-stepz
react-stepz
uses React Contexts to share the current step between components. You can wrap your component with a context provider directly
import { StepProgress } from 'react-stepz`;
...
return (
<StepProgress>
<MyComponent>
</StepProgress>
)
or use our HOC
to wrap your component
import { withStepProgress } from 'react-stepz';
export default withStepProgress(MyComponent);
Then you can create your steps and validation functions
// MyComponent.jsx
import { withStepProgress, useStepProgress, Step, StepProgressBar}
import { useState } from 'React';
const MyComponent = () => {
const [isValid, setIsValid] = useState(false);
const steps = [
{
label: 'Step 1',
name: 'step 1'
},
{
label: 'Step 2',
name: 'step 2',
validator: () => isValid
},
{
label: 'Step 3',
name: 'step 3',
validator: step3Validator
},
{
label: 'Step 4',
name: 'step 4'
}
];
const { stepForward, stepBackwards, currentIndex } = useStepProgress({
steps,
startingStep: 0
});
return (
<div>
<StepProgressBar steps={steps} />
<Step step={0}>
<h1>First step</h1>
</Step>
<Step step={1}>
<h1>Second step</h1>
</Step>
<Step step={2}>
<h1>Third Step</h1>
</Step>
</div>
)
}
export default withStepProgress(MyComponent);
string
) - CSS class name for the ProgressBarWrapperstring
) - CSS class name for ProgressBarstring
) - CSS class name for ProgressBar stepGive a ⭐️ if this project helped you!
Thanks goes to these wonderful people (emoji key):
Richard Beattie 💻 🤔 | Gaurav Saini 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
Multi step and dynamic progress indicator for react
The npm package react-stepz receives a total of 15 weekly downloads. As such, react-stepz popularity was classified as not popular.
We found that react-stepz demonstrated a not healthy version release cadence and project activity because the last version was released 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.