Pallas UI
DocsComponents
Core Concepts
    • Introduction
    • Getting Started
    • Theming
    • Color Tokens
    • Spacing & Sizing
    • Layout Guide
    • AspectRatio
    • Box
    • Flex
    • Grid
    • Shapes
Previews
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Breadcrumb
    • Button
    • Carousel
    • Checkbox
    • Combobox
    • Command
    • Date Picker
    • Form
    • Input
    • Input OTP
    • Label
    • MenuBar
    • Modal
    • Popover
    • Progress
    • Radio Group
    • ScrollArea
    • Segmented
    • Select
    • Separator
    • Sheet
    • Sidebar
    • Skeleton
    • Slider
    • Spinner
    • Steps
    • Switch
    • Tabs
    • Textarea
    • Toast
    • Tooltip
    • TreeView
    • Typography
  1. Components
  2. Combobox

Combobox

Autocomplete input with command palette and suggestions.

Loading preview...

Installation

The Combobox is built with Button, Popover and Command components.

See installation instructions for Button, Popover and Command components.

Usage

import {
  Popover
} from "@/components/ui/combobox"
<Combobox.Root open={open} onOpenChange={setOpen}>
  <Combobox.Trigger css={{ w: 200 }}>
    {value ? fruits.find((fruit) => fruit.value === value)?.label : 'Select fruit...'}
  </Combobox.Trigger>
  <Combobox.Content placeholder="Search fruit..." css={{ w: 200 }}>
    <Combobox.Group heading="Fruit">
      <Combobox.Item
        value={'apple'}
        onSelect={handleSelect}
        selected={value === fruit.value}
        icon={...}
      >
        Apple
      </Combobox.Item>
      <Combobox.Item
        value={'banana'}
        onSelect={handleSelect}
        selected={value === fruit.value}
        icon={...}
      >
        Banana
      </Combobox.Item>
      <Combobox.Item
        value={'grapes'}
        onSelect={handleSelect}
        selected={value === fruit.value}
        icon={...}
      >
        Grapes
      </Combobox.Item>
    </Combobox.Group>
  </Combobox.Content>
</Combobox.Root>

Examples

Default

Loading preview...

Popover

Loading preview...

Sizes

Loading preview...

Multi-select

Loading preview...

Groups

Loading preview...

Form

Loading preview...

Built with ❤️ by the carbonteq team. The source code is available on GitHub.

© 2026 Pallas UI. All rights reserved.

Select up to 3 fruits