You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@paprika/checkbox

Package Overview
Dependencies
Maintainers
4
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

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.

1.0.28
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
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

Package last updated on 29 Mar 2025

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