Combobox / Autocomplete

<Combobox>TailwindCSS Modules

Searchable options with suggestions. Type to filter, then select a result.

InstallationColoxo CLI
npx coloxo add combobox --style coloxo-css
ES Module ImportPlayground / npm package
import { Combobox } from '@coloxo/ui';

1. Searchable suggestions

Type a department name to narrow the suggestions, then select a result.

Choose a department

2. Interactive configurator

Visual Render Canvas
Search and select your department.

Selected value: None

tsx
<Combobox  label="Department"  options={options}  value={value}  onValueChange={setValue}  clearable={true}/>

3. Dark theme

4. Enterprise layout compositions

Use searchable suggestions in employee forms and workspace filters.

Employee details

Assign a team member to the right department.

Search for an available department.

Workspace filters

Narrow your team's work by department and project.

Accessibility

Use Arrow Up and Arrow Down to navigate suggestions, Enter to select, and Escape to close. Disabled options are skipped. Each input needs a visible label or aria-label.

MUI Autocomplete reference

Props

NameTypeDefaultDescription
optionsComboboxOption[]—Options with unique value, string label, and optional disabled state.
label / aria-labelReactNode / string—Visible label or accessible name.
value / defaultValuestring | null / string—Controlled value or initial selection.
onValueChange(value: string | null) => void—Selection callback; null when cleared.
size"sm" | "md" | "lg"mdControl size.
clearablebooleantrueAllow clearing the input and selection.
description / errorReactNode—Helper text or validation message.
disabled / requiredboolean—Disable the control or mark it required.
placeholder / emptyMessagestring—Input placeholder and empty results message.
name / id / classNamestring—Form name, input ID, and root class.