Combobox
Combined input and menu for selecting or entering values with autocomplete.
Installation
Add the component to your project using the following command:
Usage
Import
Import the component and its related parts.
Structure
The expected structure and composition of the component.
The items prop is an array of objects that define the options to be displayed in the autocomplete popup. Each object should have a value and a label property.
Props
Each component part, its responsibility, and the props it exposes.
<ComboboxTrigger>
The trigger element that opens the popup.
Base behavior is provided by Base UI Combobox. Refer to its documentation for the full API.
Name
Default
Options
`variant`
`default`
`default``subtle``plain`
`pill`
—
`true``false`
Examples
Variants
Combobox comes in a variety of variants, each with its own color and style.
You can choose between a subtle or plain variant.
Multiple Select
Allow users to select multiple options from a set of choices with Combobox component.