Socket
Socket
Sign inDemoInstall

react-simple-checkbox

Package Overview
Dependencies
12
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-simple-checkbox

Simple React checkbox component


Version published
Weekly downloads
441
decreased by-11.27%
Maintainers
1
Install size
6.08 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 11 Jun 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc