Documentation
Fields

Combobox

A text input with a filtered list of options, built only from the `field`, `popup` and `menu` families: the second recombination test.

npx shadcn@latest add @fragiola/combobox
Combobox
Gallery

Recombination

The input is a field control — field.row provides the box (border, background, focus ring); the input carries the field-control marker so the row's outline fires on focus. The trigger and clear buttons are Clickable.Button. The content is popup.content. Items are menu.selectableItem. The item indicator is menu.itemIndicator. Group labels are menu.label. Separators are menu.separator.

The component declares no new style: every class comes from a family. If this file contained a class that did not come from a family, the recombination claim would be wrong. It does not.

Parts

PartSource
RootBase UI Combobox.Root
InputGroupfield.row() + layout
Inputfield-control marker + layout
Trigger / ClearClickable.Button
Contentpopup.content()
Itemmenu.selectableItem()
ItemIndicatormenu.itemIndicator()
GroupLabelmenu.label()
Separatormenu.separator()

On this page