Switch

Type: React component

A switch button, allowing the user to toggle a single boolean value. Renders a round handle which represents the current value and animates a sliding movement when toggling the value.

Props

  1. isDisabled

    (Optional)

    Default value

  2. falseLabel

    (Optional)

    Type: String

    The human readable label representing the falsy value.

    Default value

  3. name

    (Optional)

    Type: FDS~Name

    Default value

  4. onChange

    (Optional)

    Default value

  5. tooltipContent

    (Optional)

    Default value

  6. trueLabel

    (Optional)

    Type: String

    The human readable label representing the truthy value.

    Default value

  7. validate

    (Optional)

    Default value

  8. value

    (Optional)

    Default value