Combobox

A searchable dropdown that filters a string list as the user types, displayed as an anchored popup that matches the trigger's width.

ComboBox renders a 48 dp trigger field with a chevron icon. Tapping it opens a Popup anchored below the trigger — same width — containing an underlined search Input and a lazily rendered option list. Options are filtered case-insensitively as the user types. The selected item receives an accent background and a check icon. Search text resets when the popup is dismissed without making a selection.

Basic usage

When the search query matches no options, the dropdown shows a "No results found." message instead of an empty list.

API reference

ComboBox

ParameterTypeDefaultDescription
optionsList<String>Full list of selectable options.
selectedOptionString?Currently selected value. Pass null when nothing is selected.
onOptionSelected(String) -> UnitCalled with the chosen string when the user taps an option.
modifierModifierModifierApplied to the root Column containing the trigger and popup.
enabledBooleantrueWhen false, the trigger is non-interactive and renders with the muted background.
placeholderString"Select option..."Text shown in the trigger when selectedOption is null.
dropdownMaxHeightDp200.dpMaximum height of the scrollable option list inside the popup.
Edit this page on GitHub