Combobox
Filterable single or multi-select pairing a text input with a listbox popover.
Inputs, selection, validation, dates, and native form behavior.
lr-combobox
import '@aceshooting/lyra-ui/components/lr-combobox.js';Optional dependency: lr-option
Example
import '@aceshooting/lyra-ui/components/lr-combobox.js';
import '@aceshooting/lyra-ui/components/lr-option.js';
<lr-combobox label="Fruit" placeholder="Pick one…" clearable style="max-width:18rem">
<lr-option value="a">Apple</lr-option>
<lr-option value="b" selected>Banana</lr-option>
<lr-option value="c">Cherry</lr-option>
<lr-option value="d">Date</lr-option>
</lr-combobox>Related components
- Date input — Date field with an attached calendar popover and an ISO-8601 value.
- Date picker — Inline month-grid calendar for picking a single date or a date range.
- Period picker — Chooses a reporting period and navigates to the previous or next one.
- Emoji picker — Searchable, keyboard-navigable, form-associated picker for choosing an emoji.
- Icon button — Triggers an action with a compact, accessible icon-only button.
- Input — Single-line text field with optional label, hint, and inline validation chrome.