@acodez/checkbox 中文文档教程
@acodez/checkbox
React 复选框组件。
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";
示例 - 基本
<CheckBox name="name" label="I agree to terms and conditions" />
@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" />