Skip to main contentSkip to docs navigation

Chassis

A select-style picker built from a toggle and a .menu, with filtering, single or multiple selection, form submission, and keyboard navigation.

@layer components
Requires JavaScript
Depends onForm Input, Menu
Component tokens

Introduction

A combobox is a select-style picker with one of two trigger styles:

  • Input trigger — <input class="combobox-value"> inside the toggle. Typing filters the list inline. The same input also displays the selected value when the menu is closed.
  • Button trigger — <span class="combobox-value"> (or any non-input element) inside the toggle. The toggle is display-only, like a native <select>. Add a .combobox-search-input inside the menu when the list is long enough that filtering helps.

The toggle, the items and their decoration are written in HTML. The plugin opens and closes the menu, filters the items, tracks the selection, handles the keyboard, and creates a hidden <input> for form submission.

Basic structure

A combobox needs three things: a toggle marked with data-cx-toggle="combobox", a .combobox-value element inside it, and a sibling .menu whose buttons carry data-cx-value attributes.

The examples on this page show the markup of the combobox itself and leave out the visible label. In a form field shows the labelled pattern to use in production.

Input trigger

The toggle is a wrapper <div class="form-input combobox"> with a text input inside. Typing in it filters the menu items.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="option">
  <input type="text" class="combobox-value" placeholder="Select an item…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
  <button class="menu-item" type="button" role="option" data-cx-value="3">Option three</button>
</div>

Button trigger

The toggle is itself a <button class="form-input combobox">. The user cannot type into the toggle, so the menu opens like a native <select>. Give it role="combobox", aria-expanded="false" and an aria-controls that points at the menu: the accessible name then comes from the label alone, and the text of the toggle is read as its value. Use data-cx-placeholder to set the text shown when nothing is selected — the plugin writes it to the .combobox-value element whenever the selection is empty.

HTML
<button class="form-input combobox"
        type="button"
        role="combobox"
        aria-label="Select an item"
        aria-controls="comboButtonMenu"
        aria-expanded="false"
        data-cx-toggle="combobox"
        data-cx-name="option"
        data-cx-placeholder="Select an item…">
  <span class="combobox-value"></span>
</button>
<div class="menu" id="comboButtonMenu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
  <button class="menu-item" type="button" role="option" data-cx-value="3">Option three</button>
</div>

Pre-selected value

Mark the initially selected menu item with both the .selected class and aria-selected="true". On initialization the plugin reads .selected to set the displayed value of the toggle and the hidden input, and from then on it keeps aria-selected in sync with the selection.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="role">
  <input type="text" class="combobox-value" placeholder="Choose a role…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="admin">Admin</button>
  <button class="menu-item selected" type="button" role="option" aria-selected="true" data-cx-value="editor">Editor</button>
  <button class="menu-item" type="button" role="option" data-cx-value="viewer">Viewer</button>
</div>

Sizing

Add .sm or .lg to the toggle for a smaller or larger combobox; the classes are the size modifiers of .form-input.

HTML
<div class="form-input sm combobox" data-cx-toggle="combobox">
  <input type="text" class="combobox-value" placeholder="Small combobox…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
</div>

<div class="form-input combobox" data-cx-toggle="combobox">
  <input type="text" class="combobox-value" placeholder="Default combobox…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
</div>

<div class="form-input lg combobox" data-cx-toggle="combobox">
  <input type="text" class="combobox-value" placeholder="Large combobox…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
</div>

The menu floats independently of the toggle by default. To pin its width to the toggle's, wrap both in a .position-relative container and add .w-100 to the menu.

HTML
<div class="position-relative">
  <div class="form-input combobox" data-cx-toggle="combobox" data-cx-name="option">
    <input type="text" class="combobox-value" placeholder="Select an item…" autocomplete="off">
  </div>
  <div class="menu w-100" role="listbox">
    <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
    <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
    <button class="menu-item" type="button" role="option" data-cx-value="3">Option three</button>
  </div>
</div>

Disabled

A combobox can be disabled as a whole, and individual menu items can be disabled too.

Whole combobox

Disable the toggle in one of three equivalent ways — the plugin keeps all three sources in sync:

  • disabled attribute on the toggle (button trigger only)
  • disabled attribute on the embedded <input class="combobox-value"> (input trigger)
  • .disabled class on the toggle (either trigger)

The hidden input is also disabled, so the value is excluded from form submission.

HTML
<div class="form-input combobox" data-cx-toggle="combobox">
  <input type="text" class="combobox-value" placeholder="Unavailable…" autocomplete="off" disabled>
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
</div>

<button class="form-input combobox"
        type="button"
        role="combobox"
        aria-label="Select an item"
        aria-controls="comboDisabledMenu"
        aria-expanded="false"
        data-cx-toggle="combobox"
        data-cx-placeholder="Unavailable…"
        disabled>
  <span class="combobox-value"></span>
</button>
<div class="menu" id="comboDisabledMenu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Option one</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2">Option two</button>
</div>

Individual items

Add disabled (or .disabled) to any .menu-item to make that option unselectable. The combobox itself stays usable.

HTML
<div class="form-input combobox" data-cx-toggle="combobox">
  <input type="text" class="combobox-value" placeholder="Select an option…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="1">Available option</button>
  <button class="menu-item" type="button" role="option" data-cx-value="2" disabled>Unavailable option</button>
  <button class="menu-item" type="button" role="option" data-cx-value="3">Another option</button>
</div>

To disable or re-enable a combobox at runtime, call the disable() and enable() methods.

A menu item is a button, so it holds anything a button can: SVG icons, descriptions, badges, images, or a combination of them.

Leading icon

Add .menu-item-icon to an <svg> at the start of the item. Mark it aria-hidden="true" so screen readers do not announce it next to the text of the item.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="language">
  <input type="text" class="combobox-value" placeholder="Choose a language…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="html">
    <svg class="icon menu-item-icon" aria-hidden="true"><use href="#file-outline"></use></svg>
    <span>HTML</span>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="css">
    <svg class="icon menu-item-icon" aria-hidden="true"><use href="#file-outline"></use></svg>
    <span>CSS</span>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="js">
    <svg class="icon menu-item-icon" aria-hidden="true"><use href="#file-outline"></use></svg>
    <span>JavaScript</span>
  </button>
</div>

Title with description

Wrap the title and description in .menu-item-content (a flex column) and use .menu-item-description for the secondary line. The plugin shows the text of the first <span> inside .menu-item-content in the toggle when the item is selected — keep the label of the item in that span.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="role">
  <input type="text" class="combobox-value" placeholder="Select a role…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="admin">
    <span class="menu-item-content">
      <span>Admin</span>
      <small class="menu-item-description">Full access to all resources</small>
    </span>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="editor">
    <span class="menu-item-content">
      <span>Editor</span>
      <small class="menu-item-description">Can edit and publish content</small>
    </span>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="viewer">
    <span class="menu-item-content">
      <span>Viewer</span>
      <small class="menu-item-description">Read-only access</small>
    </span>
  </button>
</div>

Selection indicator

Add .menu-item-check to an <svg> inside each item. It stays hidden until the item gains .selected. A <hr class="menu-divider"> separates groups.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="status">
  <input type="text" class="combobox-value" placeholder="Choose a status…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item selected" type="button" role="option" aria-selected="true" data-cx-value="active">
    <span class="menu-item-content">
      <span>Active</span>
      <small class="menu-item-description">Visible to users</small>
    </span>
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="draft">
    <span class="menu-item-content">
      <span>Draft</span>
      <small class="menu-item-description">Not yet published</small>
    </span>
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <hr class="menu-divider">
  <button class="menu-item" type="button" role="option" data-cx-value="archived">
    <span>Archived</span>
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
</div>

Combined

An item can combine a leading icon, a description and a selection indicator.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="priority">
  <input type="text" class="combobox-value" placeholder="Set priority…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <button class="menu-item" type="button" role="option" data-cx-value="low">
    <svg class="icon menu-item-icon icon-info" aria-hidden="true"><use href="#clock-solid"></use></svg>
    <span class="menu-item-content">
      <span>Low</span>
      <small class="menu-item-description">No rush</small>
    </span>
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="md">
    <svg class="icon menu-item-icon icon-warning" aria-hidden="true"><use href="#play-circle-solid"></use></svg>
    <span class="menu-item-content">
      <span>Medium</span>
      <small class="menu-item-description">Normal priority</small>
    </span>
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="high">
    <svg class="icon menu-item-icon icon-danger" aria-hidden="true"><use href="#exclamation-circle-solid"></use></svg>
    <span class="menu-item-content">
      <span>High</span>
      <small class="menu-item-description">Needs attention</small>
    </span>
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
</div>

Grouped items

Use .menu-header for non-interactive labels that introduce groups of related items. Mark each header role="none" so screen readers skip it instead of announcing it as an option.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="language">
  <input type="text" class="combobox-value" placeholder="Select a language…" autocomplete="off">
</div>
<div class="menu" role="listbox">
  <div class="menu-header" role="none">Frontend</div>
  <button class="menu-item" type="button" role="option" data-cx-value="html">HTML</button>
  <button class="menu-item" type="button" role="option" data-cx-value="css">CSS</button>
  <button class="menu-item" type="button" role="option" data-cx-value="js">JavaScript</button>
  <div class="menu-header" role="none">Backend</div>
  <button class="menu-item" type="button" role="option" data-cx-value="python">Python</button>
  <button class="menu-item" type="button" role="option" data-cx-value="ruby">Ruby</button>
  <button class="menu-item" type="button" role="option" data-cx-value="go">Go</button>
</div>

Multiple selection

Add data-cx-multiple="true" to the toggle. A click then toggles an item, the menu stays open until it is dismissed, and the toggle reads N selected when more than one item is selected. The hidden input's value is a comma-separated list of the selected data-cx-values. Mark the menu aria-multiselectable="true" so the listbox semantics match the behavior.

HTML
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="skills"
     data-cx-multiple="true">
  <input type="text" class="combobox-value" placeholder="Select skills…" autocomplete="off">
</div>
<div class="menu" role="listbox" aria-multiselectable="true">
  <button class="menu-item" type="button" role="option" data-cx-value="html">
    HTML
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="css">
    CSS
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="js">
    JavaScript
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="python">
    Python
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
  <button class="menu-item" type="button" role="option" data-cx-value="ruby">
    Ruby
    <svg class="icon menu-item-check" aria-hidden="true"><use href="#check-solid"></use></svg>
  </button>
</div>

Filtering long lists

Filtering hides items whose visible text does not match the current query. The mechanism differs between trigger styles: input-trigger comboboxes filter inline as the user types, while button-trigger comboboxes use a dedicated search field inside the menu.

Inline filtering

An input-trigger combobox filters without extra markup: typing into the .combobox-value input hides the items whose visible text does not match. When nothing matches, the menu closes and the typed text stays; the menu opens again as soon as the text matches an item.

Search field

For button-trigger comboboxes, add a .combobox-search-input inside the menu. When the menu opens, the focus moves to the search field. Wrap it in .combobox-search to keep it at the top of the scrolling menu, and add a .combobox-no-results element for the empty state — the plugin removes its .d-none class when no item matches.

HTML
<button class="form-input combobox"
        type="button"
        role="combobox"
        aria-label="Select a country"
        aria-controls="comboSearchMenu"
        aria-expanded="false"
        data-cx-toggle="combobox"
        data-cx-name="country"
        data-cx-placeholder="Select a country…">
  <span class="combobox-value"></span>
</button>
<div class="menu" id="comboSearchMenu" role="listbox">
  <div class="combobox-search">
    <input type="text" class="form-input combobox-search-input sm" placeholder="Search…" autocomplete="off" aria-label="Filter countries">
  </div>
  <button class="menu-item" type="button" role="option" data-cx-value="us">United States</button>
  <button class="menu-item" type="button" role="option" data-cx-value="uk">United Kingdom</button>
  <button class="menu-item" type="button" role="option" data-cx-value="ca">Canada</button>
  <button class="menu-item" type="button" role="option" data-cx-value="au">Australia</button>
  <button class="menu-item" type="button" role="option" data-cx-value="de">Germany</button>
  <button class="menu-item" type="button" role="option" data-cx-value="fr">France</button>
  <button class="menu-item" type="button" role="option" data-cx-value="jp">Japan</button>
  <button class="menu-item" type="button" role="option" data-cx-value="br">Brazil</button>
  <button class="menu-item" type="button" role="option" data-cx-value="in">India</button>
  <button class="menu-item" type="button" role="option" data-cx-value="mx">Mexico</button>
  <div class="combobox-no-results d-none">No results found</div>
</div>

Ignoring diacritics

Enable searchNormalize (with data-cx-search-normalize="true" or the option) to strip diacritics before comparing, so typing "uber" matches "über". The option applies to inline filtering and to the search field.

In a form field

Wrap the label, the combobox and any feedback in a form field. This is the pattern to use in production: a visible <label for="…"> gives the combobox its accessible name and focuses it on click, and the aria-label of the menu repeats that name so the toggle and the listbox are announced alike.

The billing region.
HTML
<div class="form-field">
  <label for="comboFormField" class="form-label">Country</label>
  <div class="form-input combobox"
      data-cx-toggle="combobox"
      data-cx-name="country">
    <input type="text" id="comboFormField" class="combobox-value" placeholder="Pick a country…" autocomplete="off">
  </div>
  <div class="menu w-100" role="listbox" aria-label="Country">
    <button class="menu-item" type="button" role="option" data-cx-value="us">United States</button>
    <button class="menu-item" type="button" role="option" data-cx-value="uk">United Kingdom</button>
    <button class="menu-item" type="button" role="option" data-cx-value="ca">Canada</button>
  </div>
  <div class="form-help">The billing region.</div>
</div>

Form submission

When data-cx-name is present on the toggle, the plugin inserts a hidden <input> immediately before the toggle and keeps its value in sync with the selection. Without data-cx-name, no hidden input is created and the combobox's value is not submitted.

HTML
<!-- Authored markup -->
<div class="form-input combobox"
     data-cx-toggle="combobox"
     data-cx-name="country">
  ...
</div>
<div class="menu">...</div>

<!-- What the plugin inserts before the toggle on init -->
<input type="hidden" name="country" value="us">

For multi-select, the hidden input's value is a comma-separated list — "html,css,js". When the combobox is disabled, the hidden input also gets disabled, so the value is excluded from form submission.

Accessibility

The accessibility of a combobox has two parts: the state the plugin keeps in sync, and the roles and names the markup has to carry.

Managed state

The plugin keeps this state in sync without extra markup:

  • aria-expanded on the toggle is true while the menu is open and false while it is closed.
  • aria-selected on each .menu-item is "true" on selected items and "false" on the others, from initialization on.
  • The .disabled class and the aria-disabled attribute of the toggle and the disabled attribute of the trigger (the button, or the embedded input) follow each other. The hidden input is disabled with them, so a disabled combobox does not submit a value.

Required markup

The plugin does not add the roles and names that identify the combobox and its options to assistive technologies. Write them in the markup:

  • Accessible name for the combobox. Either a visible <label for="…"> pointing to the input/button id, or aria-label/aria-labelledby on the toggle. The In a form field section shows the canonical labelled pattern.
  • role="combobox", aria-controls and aria-expanded="false" on a button trigger, with aria-controls naming the id of the .menu. The role requires aria-expanded before the menu first opens; the plugin keeps it in sync after that. Without the role, a <button> is named by its text, and a label that does not hold the placeholder or the selected value breaks WCAG 2.5.3 Label in Name.
  • role="listbox" on the .menu. When labelled, also add aria-label (or aria-labelledby) matching the toggle's accessible name. For multi-select, add aria-multiselectable="true".
  • role="option" on each .menu-item, and aria-selected="true" on any pre-selected items.
  • role="none" on .menu-header so screen readers skip the headers.
  • aria-hidden="true" on decorative SVG icons inside items.

Keyboard interaction

Every action of a combobox has a key. What a key does depends on where the focus is:

  • Toggle focused: ↓ / ↑ opens the menu when it is closed and focuses the first or last visible item. Enter or Space opens the menu of a button trigger; in the input of an input trigger both keys keep their native behavior. Esc closes an open menu and leaves the focus where it is.
  • Item focused: ↓ / ↑ moves between the visible items and wraps at the ends. Home / End moves to the first or last item. Enter or Space selects the focused item. Esc closes the menu and returns the focus to the toggle. Tab closes the menu and moves the focus to the control after the combobox.
  • Search field focused: ↓ moves to the first visible item. Esc closes the menu and returns the focus to the toggle.

JavaScript API

The Combobox plugin opens and closes the menu, filters and selects items, and keeps the hidden input and the ARIA state in sync. Chassis JS ships as an ES module — import the Combobox class:

JavaScript
import { Combobox } from '@chassis-ui/css'

Triggers

A toggle with data-cx-toggle="combobox" is initialized when the page loads, or on its first click when it is added later. The plugin reads these attributes on initialization:

AttributeOnDescription
data-cx-toggle="combobox"toggleInitializes the combobox.
data-cx-nametogglename of the hidden input the plugin creates. Omit it to create no hidden input.
data-cx-placeholdertoggleText shown in the toggle when nothing is selected (button trigger).
data-cx-multipletoggle"true" enables multi-select.
data-cx-search-normalizetoggle"true" strips diacritics before comparing during filtering.
data-cx-value.menu-itemThe value submitted. Items without this attribute are decorative and not selectable.

Initialization

For runtime control (opening and closing, disabling, disposing), or for options computed at runtime, create the instance with the Combobox class on the toggle:

JavaScript
const toggle = document.querySelector('[data-cx-toggle="combobox"]')
const combobox = new Combobox(toggle, {
  name: 'country',
  searchNormalize: true
})

Methods

The plugin exposes instance methods to open, close, disable and dispose a combobox, and the static lookup methods shared by every Chassis plugin:

MethodDescription
showOpens the menu.
hideCloses the menu.
toggleOpens or closes based on current state.
disableDisables the combobox and closes the menu if open.
enableRe-enables a disabled combobox.
disposeDestroys the instance and removes the hidden input.
getInstanceStatic. Returns the combobox instance attached to a toggle, or null.
getOrCreateInstanceStatic. Returns the instance or creates one.

Options

Options are set via data-cx-* attributes or passed to the constructor as an object. Attribute names use the kebab-case form of the option name — data-cx-custom-class, not data-cx-customClass. Attribute values are parsed to their native types:"true" → true, "0" → 0, and valid JSON strings to objects.

Use data-cx-config to pass multiple options as a JSON string:data-cx-config='{"delay":200}'. Individual data-cx-* attributes take precedence over data-cx-config. Individual attributes accept JSON values too, such as data-cx-delay='{"show":100,"hide":200}'.

When initializing components, Chassis merges configurations from multiple sources in this priority order: default settings, data-cx-config values, individual data-cx-*attributes, and finally any JavaScript object options. Values defined later in this sequence override earlier ones.

NameTypeDefaultDescription
multiplebooleanfalseEnable multi-select. Selections toggle and the menu stays open.
namestring | nullnullName of the hidden input the plugin creates.
placeholderstring''Placeholder for the toggle (button trigger).
searchNormalizebooleanfalseStrip diacritics when filtering.
placementstring'bottom-start'Floating UI placement for the menu.
offsetarray | string | function[0, 2][skidding, distance] offset from the toggle.
boundarystring | element'clippingParents'Overflow boundary for the menu.

Events

All events fire on the toggle element. show.cx.combobox and hide.cx.combobox are cancelable.

EventDescription
show.cx.comboboxFires when show() is called, before the menu opens. Call event.preventDefault() to keep it closed.
shown.cx.comboboxFires after the menu is visible.
hide.cx.comboboxFires when hide() is called, before the menu closes. Call event.preventDefault() to keep it open.
hidden.cx.comboboxFires after the menu is hidden.
change.cx.comboboxFires after a selection. event.value is a string for single select and an array of strings for multi-select; event.item is the .menu-item whose selection changed.

CSS

The Combobox component can be customized through Sass variables at compile time.

The combobox adds its own rules to the foundations it shares with .form-input. The forms overview lists the custom properties and Sass variables shared by all form elements.

Sass variables

The Combobox component uses Sass variables in scss/config/_defaults.scss to define its defaults; they are also exposed as CSS custom properties using the --cx- prefix for runtime override — $variable-name becomes --cx-variable-name. See the component anatomy page.

$combobox-placeholder-color:        $form-idle-fg-inactive;
$combobox-no-results-color:         var(--fg-subtle);
$combobox-menu-max-height:          320px;
$combobox-menu-overflow-y:          auto;
$combobox-search-padding:           .5rem;
$combobox-search-bg-color:          inherit;