Skip to Content
Liquid Glass UI
Components

Combobox

Responsive Apple Liquid Glass searchable selector featuring a pill macOS 27 glass input and floating dropdown on desktop, and automatically switching to an iOS 27 bottom Liquid Glass Drawer with search bar and grouped list on mobile.

Built on @base-ui/react Combobox and Drawer, following the library's viewport-driven responsive architecture (useIsMobile() at 768px) for consistent cross-platform behavior alongside Select:

  • Desktop (>= 768px · macOS 27): Pill Liquid Glass search input (sharing useLiquidFieldRefraction with Input) paired with a floating <LiquidSurfaceBackdrop tone="menu" /> dropdown featuring Apple Blue keyboard highlight and trailing checkmarks (✓).
  • Mobile (< 768px · iOS 27): Tapping the input or chips container opens a 32px top-radius bottom Liquid Glass Drawer with a built-in iOS 27 capsule search bar and Inset Grouped list (single-select dismisses on tap; multi-select provides a bottom "Done" button).

Single-Select Searchable Dropdown

Type to filter options in real time; switch Desktop / Mobile in the top-right preview toolbar to compare the floating menu and bottom Liquid Glass drawer:

apple-liquid-ui/preview/combobox-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

# Install via the configured @apple-liquid namespace (includes drawer, button, input-group, liquid-surface, use-mobile, and liquid-glass)
npx shadcn@latest add @apple-liquid/combobox

Multi-Select Chips

Enable multiple with <ComboboxChips> and useComboboxAnchor() for inline typing and backspace removal on desktop, and a multi-select bottom drawer on mobile:

apple-liquid-ui/preview/combobox-multiple
MacBook · 16:10

Organize datasets with <ComboboxGroup>, <ComboboxLabel>, and <ComboboxCollection>, rendering automatically as iOS 27 Inset Grouped cards on mobile:

apple-liquid-ui/preview/combobox-grouped
MacBook · 16:10

Props API

ComboboxInput

PropTypeDefaultDescription
glassbooleantrueLiquid Glass control material; false renders 100% opaque Bordered fill; auto-switches to Over-Glass on glass surfaces
surface'default' | 'over-glass''default'Pass 'over-glass' when manually overriding surface inside a glass card
showTriggerbooleantrueShow the trailing dropdown chevron button
showClearbooleanfalseShow a trailing clear button when a value is selected

ComboboxContent

PropTypeDefaultDescription
glassbooleantrueLiquid Glass material reacting to glass tint; false renders a 100% opaque surface
mobileTitleReact.ReactNode'Search & Select' / 'Select Items'Centered header title inside the mobile bottom drawer
side'top' | 'bottom' | 'left' | 'right''bottom'Desktop popup side
sideOffsetnumber8Distance in px between desktop menu and input
anchorReact.RefObject<HTMLElement | null>—Anchors desktop multi-select dropdown width and position to <ComboboxChips>

Language & Text

Combobox accepts locale and messages, which apply to all of its parts and the overlays it opens and win over the global <LiquidGlassProvider locale messages>. To override the text globally, put it under messages.combobox on the provider. See Liquid Glass → Global settings.

PropTypeDescription
localeLiquidGlassLocaleInputUI language of this component (any BCP 47 tag; unsupported ones fall back to English)
messagesPartial<ComboboxMessages>Text overrides, merged over the built-in text and the global messages.combobox
KeyBuilt-in text (English)
searchPlaceholderSearch options…
selectPlaceholderSelect…
multiplePlaceholderTap to select…
addMorePlaceholderAdd…
mobileTitleSingleSearch & select
mobileTitleMultipleSelect items
clearSelectionClear selection
clearSearchClear search
removeTagRemove tag
doneDone

On this page