Skip to main content

Installation

Or use the CLI:

Usage

Component API

Combobox

The root component built on @base-ui/react Combobox primitive. Props:
  • items - Array of items to display
  • value - Controlled value
  • onValueChange - Callback when value changes
  • multiple - Enable multi-select mode
  • itemToStringValue - Convert object items to string
  • autoHighlight - Auto-highlight first item on filter
  • disabled - Disable the combobox

ComboboxInput

The input field for searching and selecting items. Props:
  • showTrigger - Show dropdown trigger button (default: true)
  • showClear - Show clear button (default: false)
  • disabled - Disable the input
  • placeholder - Placeholder text

ComboboxContent

The dropdown content container. Props:
  • side - Placement side (default: "bottom")
  • sideOffset - Offset from anchor (default: 6)
  • align - Alignment (default: "start")
  • alignOffset - Alignment offset (default: 0)
  • anchor - Custom anchor element

ComboboxItem

An individual selectable item. Props:
  • value - Item value
  • disabled - Disable the item

Examples

Custom Items

Use itemToStringValue when your items are objects:

Multiple Selection

Use multiple with chips for multi-select behavior:

With Groups

Organize items into labeled groups:

Clear Button

Use the showClear prop to show a clear button:

Invalid State

Use the aria-invalid prop to mark the combobox as invalid:

Disabled

Use the disabled prop to disable the combobox:

Accessibility

  • Built on @base-ui/react for full accessibility support
  • Keyboard navigation with arrow keys
  • Type-ahead search functionality
  • Screen reader announcements for state changes
  • Focus management

API Reference

See the Base UI Combobox documentation for complete API details.