Socket
Socket
Sign inDemoInstall

@blaze-react/checkboxes

Package Overview
Dependencies
11
Maintainers
10
Versions
115
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blaze-react/checkboxes

Boxes that are checked (ticked) when activated. They allow you to select single values for submission in a form (or not).


Version published
Weekly downloads
413
increased by44.41%
Maintainers
10
Install size
173 kB
Created
Weekly downloads
 

Readme

Source

Description

Boxes that are checked (ticked) when activated. They allow you to select single values for submission in a form (or not).

Usage

  • Multiselect
const multiple = [
  {
    label: "First",
    value: 1,
    id: "one"
  },
  {
    label: "Second",
    value: 2,
    id: "two"
  },
  {
    label: "Third",
    value: 3,
    id: "three"
  },
  {
    label: "Disabled",
    value: 4,
    disabled: true
  }
];

<Checkboxes options={multiple} onChange={({ event, value }) => {}} />;
  • Single & required
const single = {
  label: 'Do you agree?',
  required: true
};

<Checkboxes
  options={single}
  boolean
  onChange={({ event, value }) => {}}

API

Checkboxes can receive a number of props as follow:
NAMETYPEDEFAULT
optionsArray[]
disabledBooleanfalse
requiredBooleanfalse
booleanBooleanfalse
onChangeFunction() => {}

FAQs

Last updated on 26 Mar 2021

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