Checkbox
The Checkbox element is used to select one or more options from a list of options.
Usage
import { Checkbox } from "@newfold/ui-component-library";
<Checkbox
id="checkbox"
label="I am a checkbox."
name="name"
value="value"
/>
Disabled
No user interaction, indicated by opacity and cursor.
<Checkbox
disabled
id="checkbox-diabled"
label="I am a checkbox."
name="name"
value="value"
/>
Checkbox List
Use the CheckboxGroup
component to render a list of checkboxes.
Props
Attribute | Type | Description | Default |
---|---|---|---|
id* | string | | - | - |
name* | string | | - | - |
value* | string | | - | - |
label* | string | | - | - |
disabled | bool | | - | false |
className | string | | - | - |