OptionalInput

Type: React component

Wraps a form component to make it support optionally adding a value. OptionalInput renders a Checkbox next to the form component which allows toggling its disabled state.

Props

  1. isDisabled

    (Optional)

    Default value

  2. onChange

    (Optional)

    Default value

  3. renderFormField

    (Required)

    Type: Function

    A callback that is called at render time, which should return a form field instance.

    Arguments

  4. tooltipContent

    (Optional)

    Default value

  5. value

    (Optional)

    Default value