# Combobox
> A select with a search field to filter its items.
Source: https://native.shellui.dev/docs/components/form/combobox
## Installation
```bash
shellui-native add combobox
```
**Platforms:** MAUI · Avalonia. Also installs `icon`.
## Usage
### Basic
**MAUI**
```xml
```
**Avalonia**
```xml
```
[Live preview](https://native.shellui.dev/preview/index.html?c=combobox-basic)
## MAUI and Avalonia
- On Avalonia, Up / Down move a highlight through the matches and Enter takes it; MAUI's Enter takes the first match.
- The Avalonia search field has focus as soon as the panel opens.
- `Value` is a nullable `string` on Avalonia.
## API
| Property | Type | Default | Description |
|---|---|---|---|
| `Value` | `string` | — | Selected item. Two-way bindable. |
| `ItemsSource` | `IList` (MAUI) · `IList?` (Avalonia) | `null` | Items to choose from; shown with `ToString()`. |
| `Placeholder` | `string` | `"Select..."` | Hint shown while empty. |
| `SearchPlaceholder` | `string` | `"Search..."` | Hint in the search field. |
| `EmptyText` | `string` | `"No results found."` | Shown when nothing matches the search. |
| Event | Arguments | Description |
|---|---|---|
| `ValueChanged` | `string` | User input only: setting Value from code or a binding doesn't raise it. |
| Method | Description |
|---|---|
| `SetOpen(bool open)` | Opens or closes it. |
| `Close()` | Closes it. |