SingleAutocomplete

Type: React component

An autocompletable TextInput with an ItemsMenu inside a Drop for rendering the autocomplete suggestions. Allows for toggling a single item. The toggled item (label) is displayed as the value of the TextInput.

Keyboard behavior:

  • ArrowDown: open the Drop

  • Escape: close the Drop

Props

  1. emptyVisual

    (Optional)

    Default value

  2. isDisabled

    (Optional)

    Default value

  3. items

    (Required)

  4. name

    (Optional)

    Type: FDS~Name

    Default value

  5. onChange

    (Optional)

    Default value

  6. onRef

    (Optional)

    Default value

  7. placeholder

    (Optional)

    Default value

  8. renderEmptyMessage

    Default value

  9. showClearButton

    (Optional)

    Type: Boolean

    Whether or not a clear button to empty the text input is displayed on the right of it.

    Default value

  10. tooltipContent

    (Optional)

    Default value

  11. validate

    (Optional)

    Default value

  12. value

    Default value

  13. isBorderless

    (Required)

    Default value

  14. isWidthEqual

    (Required)

    Default value

  15. onPositionerMount

    (Required)

    Default value

  16. onPositionerUnmount

    (Required)

    Default value