🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-simple-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-checkbox

Simple React checkbox component

1.3.0
latest
Source
npm
Version published
Weekly downloads
444
-8.45%
Maintainers
1
Weekly downloads
 
Created
Source

React Simple Checkbox

A react checkbox component, with custom color and simple animation

Preview

checkbox.gif

Getting Started

Installing

npm install react-simple-checkbox

Usage

import Checkbox from 'react-simple-checkbox';

Props

nametypedefaultdescription
idStringcheckbox's id, used for the label's 'for' attribute
colorString or Object#4A4A4Acheckbox's color. Can be a string or an object with following properties : backgroundColor, borderColor, uncheckedBorderColor and tickColor. (HEX format only)
sizenumber1possible values are 1, 2 or 3
tickSizenumber2possible values are 1, 2 or 3
borderThicknessnumber3border thickness in pixels, possible values are 1, 2, 3, 4
classNameStringadditional class name of root node
delaynumber0delay (in ms) before the animation
backAnimationDurationnumber180duration (in ms) of the checkbox's background transition
tickAnimationDurationnumber500duration (in ms) of the checkbox's tick transition
checkedbooleanfalse
onChangeFunction(isChecked:boolean)called when checkbox is changed. isChecked is the new checkbox value.

Authors

  • Opsolem

License

This project is licensed under the MIT License

Keywords

react

FAQs

Package last updated on 11 Jun 2019

Did you know?

Socket

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.

Install

Related posts