Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trendmicro/react-checkbox

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trendmicro/react-checkbox

Trend Micro Components: React Checkbox

  • 2.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by20.74%
Maintainers
4
Weekly downloads
 
Created
Source

react-checkbox build status Coverage Status

NPM

React Checkbox

Demo: https://trendmicro-frontend.github.io/react-checkbox

Installation

  1. Install the latest version of react and react-checkbox:
npm install --save react @trendmicro/react-checkbox
  1. At this point you can import @trendmicro/react-checkbox and its styles in your application as follows:
import Checkbox from '@trendmicro/react-checkbox';

// Be sure to include styles at some point, probably during your bootstraping
import '@trendmicro/react-checkbox/dist/react-checkbox.css';

Usage

// Basic
<Checkbox />

// Checked
<Checkbox defaultChecked />

// Force checked
<Checkbox checked />

// Partial checked
<Checkbox defaultIndeterminate />

// Partial checked. Force indeterminate status (Do not change by click)
<Checkbox indeterminate />

// Disabled
<Checkbox disabled />

// With Label
<Checkbox>
    Normal
</Checkbox>

// Get checked status of checkbox by this.checkbox.checked
// Get indeterminate status of checkbox by this.checkbox.indeterminate
<Checkbox
    ref={node => {
        this.checkbox = node;
    }}
/>

API

Properties

NameTypeDefaultDescription
defaultCheckedBooleanSpecify default checked status for checkbox
checkedBooleanForce checked status for checkbox
defaultIndeterminateBooleanfalseSpecify default indeterminate status for checkbox
indeterminateBooleanForce indeterminate status for checkbox
disabledBooleanfalseSpecify disabled status for checkbox
NameTypeDescription
checkedBooleanGet checked status
indeterminateBooleanGet indeterminate status

License

MIT

Keywords

FAQs

Package last updated on 17 Nov 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc