Checkbox
Basic usage
Disabled
Default checked
Call a function
Controlled example
Check Props API
- checked
bool
RequiredDefaultfalse(
Boolean
):true
if the state should be checked,false
otherwise. This prop can be used to manage the Checkbox more directly, overriding the default Checkbox checked state. - onChange
func
RequiredDefault() => {}(
Boolean
):true
if the checkbox should be disabled,false
otherwise - inputRef
func
Required |shape
Required {current:} RequiredPropTypes.element
,function to be called when the checkbox changes state