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:

NameTypeDescriptionDefault
isMultiplebooleanWhen true, renders the checkbox in an indeterminate (partially checked) state.false
labelstringText label displayed next to the checkbox.
onChangeCheckboxProps['onChange']Handler function triggered when the checkbox state changes.
checkedbooleanControls the checked state of the checkbox.false
disabledbooleanDisables the checkbox when true.false
requiredbooleanAdds a required marker (*) next to the label.false