Package Exports
- @chakra-ui/checkbox
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chakra-ui/checkbox) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@chakra-ui/checkbox
Checkbox component is used in forms when a user needs to select multiple values from several options.
Installation
yarn add @chakra-ui/checkbox
# or
npm i @chakra-ui/checkbox
Import component
import { Checkbox } from "@chakra-ui/checkbox"
Usage
<Checkbox>This is a checkbox</Checkbox>
CheckboxGroup
CheckboxGroup is used to bind multiple checkboxes into a group, and it indicates whether one or more options are selected.
<CheckboxGroup defaultValue={["one", "two"]}>
<Checkbox value="one">One</Checkbox>
<Checkbox value="two">Two</Checkbox>
<Checkbox value="three">Three</Checkbox>
</CheckboxGroup>