Skip to main content
VelinStyle v0.8.0
⌂ Home
  1. Docs
  2. Components
  3. Combobox

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

EventDetail
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>

Theme wählen