BASuite
BACheckbox
A flexible checkbox component with support for single and multiple states.
Example:
import { BACheckbox } from "basuite";
<>
<BACheckbox label="Default Checkbox" />
<BACheckbox label="Checked" checked />
<BACheckbox label="Disabled" disabled />
<BACheckbox label="Multiple (Indeterminate)" isMultiple />
</>
Props:
| Name | Type | Description | Default |
|---|---|---|---|
| isMultiple | boolean | When true, renders the checkbox in an indeterminate (partially checked) state. | false |
| label | string | Text label displayed next to the checkbox. | |
| onChange | CheckboxProps['onChange'] | Handler function triggered when the checkbox state changes. | |
| checked | boolean | Controls the checked state of the checkbox. | false |
| disabled | boolean | Disables the checkbox when true. | false |
| required | boolean | Adds a required marker (*) next to the label. | false |