
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.
@invisionag/iris-react-radio
Advanced tools
```js import Radio, { RadioGroup } from '@invisionag/iris-react-radio'; ```
import Radio, { RadioGroup } from '@invisionag/iris-react-radio';
react-radio is a component that enables a user to chose between multiple choices. the layouting of these choices depends on what component gets put into the radio group.
<RadioGroup name="basic-group">
<Radio value="1">First Option</Radio>
<Radio value="2">Second Option</Radio>
</RadioGroup>
<RadioGroup name="basic-group" selectedValue="1">
<Radio value="1">First Option</Radio>
<Radio value="2">Second Option</Radio>
</RadioGroup>
Instead of the default radio button layout, you can use clickable cards to render your options. Cards children will be displayed in the body, while the optional header prop expects valid jsx that will be rendered as a heading.
Cards behave just like the Radio elements and can be mixed with them.
import RadioCard from '@invisionag/iris-react-radio/Card';
<RadioGroup name="basic-group" selectedValue="1">
<RadioCard value="1">First Option</RadioCard>
<RadioCard value="2" header={<h1>Second</h1>}>Second Option</RadioCard>
<RadioCard value="3">Third Option</RadioCard>
</RadioGroup>
Radios can receive an onChange handler, which will get executed before the builtin handler.
<RadioGroup name="basic-group" selectedValue="1">
<Radio value="1" onChange={() => console.log('radio button changes')}>First Option</Radio>
<Radio value="2">Second Option</Radio>
</RadioGroup>
Note that input elements only fire their onChange event when a radio gets selected. If, because of that, another radio gets deselected, this one won't fire.
FAQs
```js import Radio, { RadioGroup } from '@invisionag/iris-react-radio'; ```
The npm package @invisionag/iris-react-radio receives a total of 77 weekly downloads. As such, @invisionag/iris-react-radio popularity was classified as not popular.
We found that @invisionag/iris-react-radio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 22 open source maintainers 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.