@acodez/checkbox
v1.0.2
Published
Checkbox component
Downloads
102
Readme
@acodez/checkbox
React checkbox component.
Installation
npm install @acodez/checkbox
Props API
| Property | Type | Required | Description |
|-----|-----|-----|:-----|
|label|string
|yes|label of the checkbox |
|name|string
|yes|name attribute of checkbox|
|display|string
|no|display checkboxes inline
or block
|
Usage
import CheckBox from "@acodez/checkbox";
Example - Basic
<CheckBox name="name" label="I agree to terms and conditions" />