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 (sharinguseLiquidFieldRefractionwithInput) 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 a32pxtop-radius bottom Liquid GlassDrawerwith 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:
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/comboboxMulti-Select Chips
Enable multiple with <ComboboxChips> and useComboboxAnchor() for inline typing and backspace removal on desktop, and a multi-select bottom drawer on mobile:
Grouped Search
Organize datasets with <ComboboxGroup>, <ComboboxLabel>, and <ComboboxCollection>, rendering automatically as iOS 27 Inset Grouped cards on mobile:
Props API
ComboboxInput
| Prop | Type | Default | Description |
|---|---|---|---|
glass | boolean | true | Liquid 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 |
showTrigger | boolean | true | Show the trailing dropdown chevron button |
showClear | boolean | false | Show a trailing clear button when a value is selected |
ComboboxContent
| Prop | Type | Default | Description |
|---|---|---|---|
glass | boolean | true | Liquid Glass material reacting to glass tint; false renders a 100% opaque surface |
mobileTitle | React.ReactNode | 'Search & Select' / 'Select Items' | Centered header title inside the mobile bottom drawer |
side | 'top' | 'bottom' | 'left' | 'right' | 'bottom' | Desktop popup side |
sideOffset | number | 8 | Distance in px between desktop menu and input |
anchor | React.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.
| Prop | Type | Description |
|---|---|---|
locale | LiquidGlassLocaleInput | UI language of this component (any BCP 47 tag; unsupported ones fall back to English) |
messages | Partial<ComboboxMessages> | Text overrides, merged over the built-in text and the global messages.combobox |
| Key | Built-in text (English) |
|---|---|
searchPlaceholder | Search options… |
selectPlaceholder | Select… |
multiplePlaceholder | Tap to select… |
addMorePlaceholder | Add… |
mobileTitleSingle | Search & select |
mobileTitleMultiple | Select items |
clearSelection | Clear selection |
clearSearch | Clear search |
removeTag | Remove tag |
done | Done |
Color Picker
Hex color field with an Apple 27 color well — a swatch button opens a Liquid Glass panel (spectrum, hue track and system color swatches) on desktop and an iOS 27 bottom Drawer on mobile.
Command
Responsive macOS 27 Spotlight-style Liquid Glass command palette supporting custom keyboard shortcuts on desktop, and automatically adapting to a swipe-to-dismiss iOS 27 bottom Liquid Glass Drawer with grouped rows on mobile.