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
    • Segmented
    • Select
    • Separator
    • Sheet
    • Sidebar
    • Skeleton
    • Slider
    • Spinner
    • Steps
    • Switch
    • Tabs
    • Textarea
    • Toast
    • Tooltip
    • Typography
  1. Components
  2. Combobox

Combobox

Autocomplete input with command palette and suggestions.

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

Popover

Sizes

Multi-select

Groups

Form

Select up to 3 fruits

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

© 2025 Pallas UI. All rights reserved.