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

bpk-component-checkbox

Package Overview
Dependencies
Maintainers
7
Versions
521
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpk-component-checkbox

Backpack checkbox component.

5.1.2
latest
Source
npm
Version published
Weekly downloads
538
1635.48%
Maintainers
7
Weekly downloads
 
Created
Source

bpk-component-checkbox

Backpack checkbox component.

Installation

npm install bpk-component-checkbox --save-dev

Usage

import React from 'react';
import BpkCheckbox from 'bpk-component-checkbox';

export default () => (
  <BpkCheckbox
    name="prefer-directs"
    onChange={() => console.log('prefer directs changed!')}
    label="Prefer directs"
    checked
  />
);

Props

PropertyPropTypeRequiredDefault Value
namestringtrue-
labelnodetrue-
checkedboolfalsefalse
disabledboolfalsefalse
indeterminateboolfalsefalse
requiredboolfalsefalse
smallLabelboolfalsefalse
validboolfalsenull
whiteboolfalsefalse

indeterminate prop

The indeterminate prop is only a visual clue, it does not affect the checked state of the checkbox. If indeterminate is flagged then the checkbox will be displayed with a minus sign in the box. This is used when there is a checkbox group and the parent displays this state when not all child checkboxes are selected.

Theme Props

  • checkboxCheckedColor

FAQs

Package last updated on 30 Sep 2022

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