
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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
The npm package react-simple-checkbox receives a total of 406 weekly downloads. As such, react-simple-checkbox popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.