Stylish Autocomplete
A text field with a filtered suggestion dropdown — the web "AutoComplete" pattern from Ant Design and MUI.
As the user types, options are filtered with match and up to maxSuggestions matches are shown in a popover below the field. Selecting a suggestion calls onOptionSelect (and onValueChange with the selected text).
Parameters
The current field text.
Called as the user types.
The full candidate list to filter against.
Modifier applied to the root box.
Optional field label.
Optional placeholder text.
Optional callback invoked with the selected suggestion.
Predicate deciding whether option matches query. Defaults to a case-insensitive substring match.
Maximum suggestions shown. Defaults to 6.
When false, the field is read-only and suggestions are hidden.
Whether the field renders in its error state.
Optional supporting error text.
Corner shape of the field and popover. Defaults to RoundedCornerShape with DefaultStylishDimensions.connectedCornerRadius.
Width of the suggestion popover. Defaults to 320 dp.