0.1.0 • Published 2 years ago
@logo-rn/logo-check-box v0.1.0
@logo-rn/logo-check-box
allows user to select the item or turn an option on or off. allows user to select one or more items from a set or turn the options on or off.
Installation
Install the component:
npm i @logo-rn/logo-check-box -s
Usage
Once installed, import the component in your application:
import {LogoCheckBox, LogoCheckBoxGroup} from '@logo-rn/logo-check-box';
<LogoCheckBox checked={false} />
const CHECKBOX_OPTIONS = [
{
id: "1",
value: “item1”,
checked: false,
disabled: false
},
{
id: "2",
value: “item2”,
checked: true,
disabled: false
},
{
id: "3",
value: “item3”,
checked: true,
disabled: true
},
]
<CheckBoxGroup
options={CHECKBOX_OPTIONS}
checked={false}
title={“Options”} />