AutoComplete
Type to get suggestions, with keyboard up/down selection, Enter to confirm, and Esc to close.
Basic Usage
Basic usage
Typing keywords auto-filters matching items in the dropdown; ↑/↓ move the highlight, Enter selects, Esc closes.
Preset Value
Preset value
Disabled
Disabled
No Match
Empty state
Events
Input & selection events
Listen to oas-input (while typing) and oas-change (on selection):
API
Attributes
| Attribute | Description | Type | Default |
|---|---|---|---|
disabled | Disabled | boolean | — |
options | Options, JSON array [{ label, value, disabled }] | Option[] | string | [] |
placeholder | Placeholder text | string | — |
value | Preset value | string | — |
Events
| Event | Description |
|---|---|
oas-change | Selected, detail: { value, label } |
oas-input | While typing, detail: { value } |
Keyboard: ↑/↓ to move, Enter to select, Esc to close.