@s-ui/react-molecule-checkbox-field
Version:
`MoleculeCheckboxField` is the combination of and `AtomCheckbox` and a `checkboxField`
67 lines (51 loc) • 2.21 kB
Markdown
# MoleculeCheckboxField
`MoleculeCheckboxField` is the combination of and `AtomCheckbox` and a `checkboxField`
[](https://sui-components.vercel.app/workbench/molecule/checkboxField/)
[](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,molecule,checkboxField)
[](https://www.npmjs.com/package/@s-ui/react-molecule-checkbox-field)
[](https://github.com/SUI-Components/sui-components/issues?q=is%3Aopen+label%3Acomponent+label%3AcheckboxField)
[](https://github.com/SUI-Components/sui-components/blob/main/components/molecule/checkboxField/LICENSE.md)
## Installation
```sh
$ npm install @s-ui/react-molecule-checkbox-field --save
```
## Usage
```js
import MoleculeCheckboxField from '@s-ui/react-molecule-checkbox-field'
```
### Basic usage (info)
```js
<MoleculeCheckboxField
id="description-inline2"
label="Description"
helpText="Tu descripción en Latin"
/>
```
### Success Message
```js
<MoleculeCheckboxField
id="description2"
label="Description"
value="In some place of La Mancha which name..."
successText="Everything ok!"
/>
```
### Error Message
```js
<MoleculeCheckboxField
id="notes"
label="Notes"
errorText="All wrong!"
value="In some place of La Mancha which name..."
/>
```
### Alert Message
```js
<MoleculeCheckboxField
id="notes"
label="Notes"
alertText="Something meh..."
value="In some place of La Mancha which name..."
/>
```
> **Find full description and more examples in the [demo page](/workbench/molecule/checkboxField).**