Component libraryGlobal search
Components/Navigation

Global search

Pro

Search grouped workspace records, recent items and actions in one modal surface.

npx shadcn@latest add @tidal-pro/global-search
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/global-search

Import components/ui/tidal.css, components/ui/global-search.css, components/ui/keyboard-key.css, components/ui/spinner.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

Required controlled open/onOpenChange, controlled query/onQueryChange(query,event), consumer-supplied globally unique grouped results, title and description. Optional recentItems shown only for an empty query, link or action result metadata/icons/disabled/native props, onResultSelect(id,result,MouseEvent), loading/error/empty states, trigger or default native trigger props/ref and nonfunctional shortcut hint, input labels/props/ref, close props/ref, overlay props/ref, content attributes/ref, portal container, theme, direction and keyboard-hint visibility. Native result anchors preserve href including an empty string, target/download/rel/modifiers and expose the original click event so hosts can explicitly own SPA routing. Native result/button handlers run first and prevention suppresses onResultSelect. Disabled or aria-disabled true results are nonoperable; explicit false is preserved. Search input ArrowDown/Up enters the result list; result ArrowUp/Down/Home/End moves native focus, skipping disabled rows. Radix Dialog owns modal focus, Escape, backdrop dismissal and trigger focus return. The component performs no search, filtering, request, navigation override, hotkey registration, storage or analytics.

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.