Checkbox

Basic usage

Disabled

Default checked

Call a function

Controlled example

Check Props API
  • checked bool

    (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.

    Defaultfalse
  • onChange func

    (Boolean): true if the checkbox should be disabled, false otherwise

    Default() => {}
  • inputRef func | shape {
    current: PropTypes.element,
    }

    function to be called when the checkbox changes state