MultiChoiceComboBox
A ComboBox component that allows users to select multiple options from a dropdown list. It combines a text field with a dropdown menu, providing a searchable interface for selecting options. The selected choices are displayed as chips below the text field.
Parameters
The state of the text field that controls the input value
Whether the dropdown menu is currently expanded
Callback invoked when the expanded state changes
Callback invoked when the dropdown menu should be dismissed
The list of currently selected choices
Callback invoked when a selected choice chip is clicked, typically to remove it
Modifier to be applied to the ComboBox
Whether the ComboBox is enabled
Whether the field is required
Optional label text displayed above the ComboBox
Optional placeholder text shown when the field is empty
Optional helper text displayed below the ComboBox
Optional composable content displayed at the start of the ComboBox
Optional composable content displayed at the end of the ComboBox, if not provided, a default trailing icon will be used.
Optional status of the form field (e.g., error, success)
Optional message associated with the status
Optional transformation applied to input text
Options for the keyboard
Optional handler for keyboard actions
Limits for the number of lines in the text field
Optional callback for text layout changes
Optional interaction source for the ComboBox
Optional transformation applied to output text
Scroll state for the text field
Content of the dropdown menu, using MultiChoiceDropdownItemColumnScope
See also
for a version that supports single selection
A ComboBox component that allows users to select multiple options from a dropdown list. It combines a text field with a dropdown menu, providing a searchable interface for selecting options. This overload does not manage selected choices directly, and is intended for use cases where selection state is handled externally or not needed.
Parameters
The state of the text field that controls the input value
Whether the dropdown menu is currently expanded
Callback invoked when the expanded state changes
Callback invoked when the dropdown menu should be dismissed
Modifier to be applied to the ComboBox
Whether the ComboBox is enabled
Whether the field is required
Optional label text displayed above the ComboBox
Optional placeholder text shown when the field is empty
Optional helper text displayed below the ComboBox
Optional composable content displayed at the start of the ComboBox
Optional composable content displayed at the end of the ComboBox, if not provided, a default trailing icon will be used.
Optional status of the form field (e.g., error, success)
Optional message associated with the status
Optional transformation applied to input text
Options for the keyboard
Optional handler for keyboard actions
Limits for the number of lines in the text field
Optional callback for text layout changes
Optional interaction source for the ComboBox
Optional transformation applied to output text
Scroll state for the text field
Content of the dropdown menu, using MultiChoiceDropdownItemColumnScope
See also
for a version that supports single selection
for the version that manages selected choices