Socket
Socket
Sign inDemoInstall

@paprika/checkbox

Package Overview
Dependencies
93
Maintainers
3
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paprika/checkbox

Checkbox component displays a checkbox and label text beside it. When clicked it displays a checkmark. It can also have an indeterminate state which can be used to group checkboxes.


Version published
Weekly downloads
3.4K
increased by4.26%
Maintainers
3
Install size
3.37 MB
Created
Weekly downloads
 

Readme

Source

@paprika/checkbox

Description

Checkbox component displays a checkbox and label text beside it. When clicked it displays a checkmark. It can also have an indeterminate state which can be used to group checkboxes.

Installation

yarn add @paprika/checkbox

or with npm:

npm install @paprika/checkbox

Props

Checkbox

PropTyperequireddefaultDescription
a11yTextstringfalsenullUsed for aria-label on the checkbox input
checkedState[ Checkbox.types.state.CHECKED, Checkbox.types.state.UNCHECKED, Checkbox.types.state.INDETERMINATE]falseCheckbox.types.state.UNCHECKEDThe checkbox state
childrennodefalsenullUsed for label contents
isDisabledboolfalsefalseDescribe if the checkbox is disabled or not
onChangefuncfalse() => {}Callback triggered when the input state is changed
size[ Checkbox.types.size.SMALL, Checkbox.types.size.MEDIUM, Checkbox.types.size.LARGE]falseCheckbox.types.size.MEDIUMSize provided by parent Group component
tabIndex[number,string]false0Value for tabindex attribute to override the default of 0.

Usage

import Checkbox from "@paprika/checkbox";

<Checkbox onChange={handleChange} checkState={checkedStateValue>
  Checkbox 1
</Checkbox>;
  • Storybook Showcase
  • GitHub source code
  • Create GitHub issue
  • CHANGELOG

FAQs

Last updated on 22 Apr 2023

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