Skip to content
ghostui

Preview

No fruit selected

Design guidance

Combobox renders its chips through TagItem and TagItem.Remove. InputGroup owns the field boundary; Chips lays out the selected values. Put Clear and Trigger inside InputGroup.Addon to use the shared inset ghost icon buttons. Caller-provided render values remain supported.

Selected options use a trailing checkmark and no resting background. Input focus changes the border color through --input-focus-border-color. Group labels share --menu-label-color, --menu-label-font-size, --menu-label-font-weight, and --menu-label-text-transform with Select and Autocomplete. Compose Separator between groups. Status and Empty share padding and typography; keep Status mounted and update its children.

Use Combobox for a bounded choice with filtering. Use Select for a short fixed list and Menu or DropdownMenu for actions. Use Tag Input for freeform tag editing.

Installation

Install the local ghost-kit source bundle while the registry runs at localhost:3110. It contains this component and its source dependencies. Prepare the local registry first so token dependencies also resolve locally.

Install

Basic usage

Structure

Examples

Multiple select

Select several programming languages. Each selected value becomes a removable chip.

Input inside popup

Open the country selector, then search inside its popup.

Creatable

Pick an existing issue label or create the name entered in the field.

Grouped

Find produce in Fruit and Vegetable groups.

Async search, single

Search a delayed local reviewer fixture. Loading, no match, failure, and retry appear in the popup. Older query results cannot replace newer ones.

Async search, multiple

Search the same local fixture and add several reviewers as removable chips.

Virtualized

Search a 240-project list. The popup mounts only rows near the viewport and scrolls with keyboard navigation.

API reference

Combobox.ItemIndicator renders a standard Check icon by default. Supply children for a custom indicator; refs, render, and keepMounted remain available.

For inherited behavior and additional part properties, see the Base UI Combobox API.