Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
react-custom-radio-buttons-group
Advanced tools
Readme
react-custom-radio-buttons-group is a well designed single react component that helps you create radio-buttons group.
This package is available in NPM repository as react-custom-radio-buttons-group. It will work correctly with all popular bundlers.
npm install react-custom-radio-buttons-group --save
Using yarn
yarn add react-custom-radio-buttons-group
To start using react-custom-radio-buttons-group you just need to import the component RadioButtonGroup from the package.
import React from 'react';
import RadioButtonGroup from 'react-custom-radio-buttons-group';
const handleChange = (e)=>{
doSomething(e.target.value)
}
export default () => (
<RadioButtonGroup
onChange={handleChange}
hide={false}
values={[...]}
/>
);
name | description |
---|---|
onChange | called when select a value from values |
values | Array of radio-buttons |
hide | if true it hides radio button input |
<RadioButtonGroup
onChange={handleChange}
hide={false}
values={["Apple","Banana","Orange"]}
/>
<RadioButtonGroup
onChange={handleChange}
hide={true}
values={[<Especes/>,<Paypal/>,<Credit/>,<Tpe/>]}
/>
To edit radio-buttons default change you have to override the css properties of classes bellow:
/* radio-button default style */
.radio-button {
}
/* radio-button active style */
.radio-button.active {
}
/* radio-button input default style */
.dot{
}
.dot::before{
}
/* radio-button input active style */
.dot.active{
}
.dot.active::before{
}
FAQs
Simple Radio-buttons group Component
The npm package react-custom-radio-buttons-group receives a total of 4 weekly downloads. As such, react-custom-radio-buttons-group popularity was classified as not popular.
We found that react-custom-radio-buttons-group 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.