Combobox
The <velin-combobox> component combines a text field and filterable listbox. Place the input in the trigger slot; options use role="option". Added in 0.7.5.
Example
<velin-combobox aria-label="Fruit picker">
<input slot="trigger" class="velin-input" aria-label="Fruit" />
<button type="button" role="option">Apple</button>
</velin-combobox>
Events
| Event | Detail |
|---|---|
velin-select | { option } |
Import
Load the bundle once, then use the custom element in your markup:
<script type="module" src="../../dist/velinstyle-components.min.js"></script>
<velin-combobox>…</velin-combobox>