CheckboxButton

If you are pairing a checkbox with a label (recommended), use the Checkbox component instead.

Only use CheckboxButton on the rare occassion that you want a checkbox with no label (e.g. on a settings page with a matrix of options). Ensure you provide an aria-label to replace the absent label.

Props

NamePropTypeRequiredDefault ValueAllowed ValuesDescription
aria-labelstringfalseundefined
checkedboolfalsefalse
classNamestringfalseundefined
disabledboolfalsefalse
onChangefunctrue
Edit these docs on Github