@s-ui/react-atom-checkbox
Version:
AtomCheckbox is a component that displays an input checkbox w/ its expected behavior
48 lines (32 loc) • 1.62 kB
Markdown
# AtomCheckbox
AtomCheckbox is a component that displays an input checkbox w/ its expected behavior
[](https://sui-components.vercel.app/workbench/atom/checkbox/)
[](https://github.com/SUI-Components/sui-components/issues/new?&projects=4&template=bug-report.yml&assignees=&template=report-a-bug.yml&title=🪲+&labels=bug,component,atom,checkbox)
[](https://www.npmjs.com/package/@s-ui/react-atom-checkbox)
[](https://github.com/SUI-Components/sui-components/issues?q=is%3Aopen+label%3Acomponent+label%3Acheckbox)
[](https://github.com/SUI-Components/sui-components/blob/main/components/atom/checkbox/LICENSE.md)
## Installation
```sh
$ npm install @s-ui/react-atom-checkbox --save
```
## Usage
```js
import AtomCheckbox from '@s-ui/react-atom-checkbox'
```
### Basic usage
```js
<AtomCheckbox />
```
### Checked
```js
<AtomCheckbox checked />
```
### Disabled
```js
<AtomCheckbox disabled />
```
### w/ onChange handler
```js
<AtomCheckbox onChange={console.log} />
```
> **Find full description and more examples in the [demo page](/workbench/atom/checkbox).**