Lion Logo Lion Fundamentals Guides Components Blog Toggle darkmode

Combobox: Overview

A combobox is a widget made up of the combination of two distinct elements:

  • a single-line textbox
  • an associated listbox overlay

Based on the combobox configuration and entered textbox value, options in the listbox will be filtered, checked, focused and the textbox value may be autocompleted. Optionally, the combobox contains a graphical button adjacent to the textbox, indicating the availability of the pop-up.

Fore more information, consult Combobox wai-aria design pattern

export const main = () => html`
  <lion-combobox name="combo" label="Default">
        (entry, i) =>
          html` <lion-option .checked="${i === 0}" .choiceValue="${entry}">${entry}</lion-option> `,
`; more




npm i --save @lion/combobox
import '@lion/combobox/define';
import '@lion/listbox/lion-option.js';