Form Inputs

Autocomplete

Free-text input with filtered suggestions.

Free-text input with filtered suggestions.

Suggestions#

Inline completion#

Disabled#

Component props#

items accepts unique strings. Users can enter a value that is absent from the suggestions.

PropTypePurpose
itemsreadonly string[]Suggestions to filter and display
labelReactNodeAccessible input label
value / defaultValuestringControlled or initial text
onChange(value: string) => voidReceives edits and chosen suggestions
onValueChangeBase UI callbackReceives the value and cancellable event details
isDisabledbooleanDisables the input
mode'list' | 'both' | 'inline' | 'none'Filtering and inline completion behavior
inputPropsBase UI Input propsInput attributes, including aria-label when no label is shown
positionerPropsBase UI Positioner propsPopup placement
renderItem(item: string) => ReactNodeCustom suggestion content
emptyMessageReactNodeContent shown when no suggestions match

The forwarded ref targets the input. Other Base UI Autocomplete root props are supported, including open, onOpenChange, filter, and readOnly.