
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-multistep-form
Advanced tools
A React Component to handle multistep form with a wide range of possibilities.
Requirements: tested with React 15.5.
To install the library, just run yarn add react-multistep-form
(or npm install --save react-multistep-form
).
MultiStepForm
is the main component for the form. All its children MUST be Step
components. Any other child will not be rendered. No parameter is required for MultiStepForm but it accepts several optional parameters:
initialStep
: the first step to display before any user interaction. If null
, the first step in order of appearance will be selected. Default: null
component
: a custom component that you want to use for the layout of the form. Useful for instance to show the progress in the form or providing back buttons etc. If not provided, the steps will just be rendered without any wrapper.initialState
: the initial values for the form. Default: {}
onChange
: a function that will be called when any value in the form changes, with an object containing all the keys and values as a unique parameter. Default: null
onStepChange
: a function that will be called when the step has changed in the form, with the new step name as the only argument. Default: null
.The Step
component has two parameters, both required:
name
: a unique identifier for this stepcomponent
: the React component to render when the step is active. The React component will receive props from`the form when rendered (see below).The Step
component injects several properties to its component
, so that you can use current values from the main form. THose properties are:
steps
: an object containing:
formState
: an object containing the current keys and values for the form. Ex: {email: 'john@doe.com'}
changeValue
: the function you should call to change a value in the form. Use it this way: changeValue(key, value)
goToStep
: the function you should call to change the current step. You can use it to go back to the first one, previous, next or any other step you think is useful.FAQs
A React Component to handle multistep form with a wide range of possibilities.
The npm package react-multistep-form receives a total of 0 weekly downloads. As such, react-multistep-form popularity was classified as not popular.
We found that react-multistep-form 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.