New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ds-kit/checkbox

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ds-kit/checkbox

Checkbox component

latest
npmnpm
Version
2.1.0
Version published
Maintainers
3
Created
Source

title: "Checkbox" slug: "/packages/checkbox" category: "control" componentNames:

  • "Checkbox"

Checkbox

The Checkbox component that follows the WAI-ARIA Checkbox Pattern.

import Checkbox from "@ds-kit/checkbox"

Basic Example (Uncontrolled)

A basic example of an uncontrolled Checkbox component can look like this:

<>
  <Checkbox value="blue" text="blue" />
  <Checkbox value="red" text="red" />
</>

Controlled Checkbox

<>
  <Checkbox
    checked={true}
    value="red"
    onChange={() => alert("click red")}
    text="red"
  />
  <Checkbox
    checked={false}
    value="blue"
    onChange={() => alert("click blue")}
    text="blue"
  />
</>

FAQs

Package last updated on 22 Aug 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