
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
react-simple-checkbox
Advanced tools
A react checkbox component, with custom color and simple animation
npm install react-simple-checkbox
import Checkbox from 'react-simple-checkbox';
name | type | default | description |
---|---|---|---|
id | String | checkbox's id, used for the label's 'for' attribute | |
color | String or Object | #4A4A4A | checkbox's color. Can be a string or an object with following properties : backgroundColor, borderColor, uncheckedBorderColor and tickColor. (HEX format only) |
size | number | 1 | possible values are 1, 2 or 3 |
tickSize | number | 2 | possible values are 1, 2 or 3 |
borderThickness | number | 3 | border thickness in pixels, possible values are 1, 2, 3, 4 |
className | String | additional class name of root node | |
delay | number | 0 | delay (in ms) before the animation |
backAnimationDuration | number | 180 | duration (in ms) of the checkbox's background transition |
tickAnimationDuration | number | 500 | duration (in ms) of the checkbox's tick transition |
checked | boolean | false | |
onChange | Function(isChecked:boolean) | called when checkbox is changed. isChecked is the new checkbox value. |
This project is licensed under the MIT License
FAQs
Simple React checkbox component
We found that react-simple-checkbox 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
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.