
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-form-step-wizard
Advanced tools
A lightweight, accessible and flexible multi-step form wizard for React. Designed to work seamlessly with react-hook-form and zod schemas.
next() and back()react-hook-form and Zodnpm install react-form-step-wizard
or
yarn add react-form-step-wizard
import { FormWizard, Step, Persistent, useWizard } from 'react-form-step-wizard';
import { useFormContext, FormProvider, useForm } from 'react-hook-form';
const StepOne = () => {
const form = useFormContext();
const { next } = useWizard();
return (
<div>
<input {...form.register('name')} placeholder="Name" />
<button type="button" onClick={next}>Next</button>
</div>
);
};
const StepTwo = () => {
const form = useFormContext();
const { back } = useWizard();
return (
<div>
<input {...form.register('email')} placeholder="Email" />
<button type="button" onClick={back}>Back</button>
<button type="submit">Submit</button>
</div>
);
};
const MyForm = () => {
const form = useForm();
return (
<FormProvider {...form}>
<FormWizard onSubmit={(data) => console.log(data)}>
<Persistent>
<p>This section is always visible</p>
</Persistent>
<Step name="step1">
<StepOne />
</Step>
<Step name="step2">
<StepTwo />
</Step>
</FormWizard>
</FormProvider>
);
};
<FormWizard onSubmit={...}>Wraps the entire form and provides context and state.
<Step name="...">Defines a step in the wizard. Only one step is shown at a time.
<Persistent>Content inside this block remains visible across all steps (e.g. headers, instructions, etc.).
useWizard()Hook to control navigation: next(), back(), currentStep.
MIT
FAQs
Multi-step form wizard tool for React
We found that react-form-step-wizard 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.