Checkbox

Type: React component

Toggles a single boolean value, rendering a square border and a check mark when checked. When you feel the need to implement multiple Checkbox components for the same piece of data, consider using a CheckboxGroup instead.

Keyboard behavior:

  • Enter: call the onChange prop when focused and isDisabled is false.

Props

  1. isDisabled

    (Optional)

    Default value

  2. label

    (Optional)

    Type: Any

    Either a string, for which a Label component is used to render that string, or any valid ReactNode, which is rendered directly.

    Default value

  3. name

    (Optional)

    Type: FDS~Name

    Default value

  4. onChange

    (Required)

  5. tooltipContent

    (Optional)

    Default value

  6. validate

    (Optional)

    Default value

  7. value

    (Optional)

    Default value