Skip to content
nexubDesign System
v12.7.0

Components · Form Controls

Combobox

StableAdded v0.0.1

Command-palette style searchable dropdown built on cmdk.

import { Combobox } from '@nexub/react';
View as Markdown

Examples

Default

Props

Props
PropTypeDefaultDescription
Combobox.Rootcompound—Root cmdk command container.
Combobox.Inputcompound—Search input that filters the list.
Combobox.Listcompound—Scrollable list container for groups and items.
Combobox.Groupcompound—Labeled group of items within the list.
Combobox.Itemcompound—Individual selectable option.
Combobox.Emptycompound—Content shown when no items match the search query.
Combobox.Separatorcompound—Visual separator between groups or items.

Design tokens

Combobox reads these component tokens. Each one is unset by default and falls back to the semantic role it aliases, so nothing changes until you set it. Set one on any element to restyle every Combobox below it, and leave the roles other components share alone. See the three token tiers.

Input, Textarea, Select and Combobox triggers.

Combobox design tokens
TokenAliasesNotes
--field-bg--color-surface-container-lowest—
--field-fg--color-on-surface—
--field-border--color-outline—
--field-radius--shape-field—
CSS
/* One area of your app */
.checkout {
  --field-bg: var(--color-secondary);
}