Combobox
Text input join listbox wey pop out so person fit filter and choose one or many items.
Input fields, choices, validation, dates and native form behaviour.
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>Components wey relate
- Date input — Date field wey get calendar popover and store value as ISO-8601.
- Date picker — Calendar wey show one month inside page to choose one date or date range.
- Period picker — Pick time period for report, then move go di period wey come before or after.
- Emoji picker — Emoji picker wey person fit search, use with keyboard and submit with form.
- Icon button — Small accessible button wey show only icon to start action.
- Text input — One-line text field wey fit show label, hint and validation error.