The Autocomplete component allow user to type and select from a list of options.
titlestring | nodeThis prop can be either a string or a Node. It will provide a title for the items
itemsRequiredarrayAn array of items to be used as options for the select
selectedItemanyThe selected Item to be shown on the autocomplete
itemToStringfuncIn case the array of items is not an array of strings, this function is used on each item to return the string that will be shown on the filter
childrenRequiredfuncFunction that will render the 'filter' component.
itemSizenumberThe height of each item in the list Because the list is virtualized this is required beforehand.
renderItemfuncFunction that returns a component to render the item
positionPosition.TOP | Position.TOP_LEFT | Position.TOP_RIGHT | Position.BOTTOM | Position.BOTTOM_LEFT | Position.BOTTOM_RIGHT | Position.LEFT | Position.RIGHTThe position of the Popover the Autocomplete is rendered in.
itemsFilterfuncA function that is used to filter the items. It should return a subset of the initial items. By default the "fuzzaldrin-plus" package is used.
isFilterDisabledboolProp that enables and disables filtering True: Enables Filtering False: Disables Filtering
popoverMinWidthnumberDefines the minimum height the results container will be
popoverMaxHeightnumberDefines the maximum height the results container will be
allowOtherValuesboolWhether or not the input accepts arbitrary user input beyond the provided items
childrennodestyleobjectisSelectedboolisHighlightedbool