Component libraryCombobox

Combobox

Pro

A controlled searchable single-selection field with native form value, accessible active-option keyboard behavior, and consumer-owned results.

npx shadcn@latest add @tidal-pro/combobox
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/combobox

Import components/ui/tidal.css, components/ui/combobox.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

label, controlled query/open/activeOptionId/selectedOptionId, formValue, native hidden-input name, consumer-owned visible options and four controlled callbacks are required. The labelled native text input exposes combobox/listbox/expanded/active-descendant semantics and excludes conflicting controlled, default, type and ARIA state props. Arrow keys wrap through enabled options; Home/End move to boundaries, Enter requests selection, Escape closes and Tab closes without preventing focus travel. The native input, toggle and options run supplied native handlers first and suppress higher callbacks when prevented; disabled and read-only states suppress mutation. Options carry consumer-owned visible/accessibility content, disabled state, native div attributes/ref and optional metadata. The hidden native form value supports external form ownership, attributes/ref and remains submitted while read-only. Optional labels, selectedLabel, description, hint, error, empty content and native root/input/toggle attributes/refs remain consumer-owned. Active-option scrolling is confined to the listbox. Outside pointer dismissal waits for activation or a release fallback, preserving nearby native click targets. onOpenChange receives React interaction events or a documented TidalComboboxDeferredBlurEvent envelope with stable currentTarget and original native focus event after a deferred pointer blur. Consumers own filtering, querying, selection and every outcome. The component performs no request, routing, assignment, analytics, network, storage or persistence action.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.