Global search preview
Search grouped workspace records, recent items and actions in one modal surface.
pro · Navigation · composite
When to use
- Use it when a page needs search grouped workspace records, recent items and actions in one modal surface.
- Choose it as the nav region when composing a page from independently reusable TidalUI sections.
Alternatives
- Choose navigation-bar instead when responsive saas navigation with native links, actions and an in-flow mobile disclosure is the actual interface need, rather than global search.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/global-searchImport components/ui/tidal.css, components/ui/global-search.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/global-search.css";
import{TidalGlobalSearch}from"./components/ui/global-search";
export default(p:Parameters<typeof TidalGlobalSearch>[0])=><div className="tidal-scope"><TidalGlobalSearch {...p}/></div>;API and props
TidalGlobalSearch.description (required)ReactNodeRequired description value accepted by this exported component.
TidalGlobalSearch.groups (required)ReadonlyArray<TidalGlobalSearchGroup>Required groups value accepted by this exported component.
TidalGlobalSearch.onOpenChange (required)(open: boolean) => voidCallback invoked when the open change interaction is proposed.
TidalGlobalSearch.onQueryChange (required)(query: string, event: ChangeEvent<HTMLInputElement>) => voidCallback invoked when the query change interaction is proposed.
TidalGlobalSearch.open (required)booleanRequired open value accepted by this exported component.
TidalGlobalSearch.query (required)stringRequired query value accepted by this exported component.
TidalGlobalSearch.title (required)ReactNodeRequired title value accepted by this exported component.
TidalGlobalSearch.closeButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "aria-label" | "children" | "dangerouslySetInnerHTML"> | undefinedOptional close button props value accepted by this exported component.
TidalGlobalSearch.closeButtonRefRef<HTMLButtonElement> | undefinedOptional close button ref value accepted by this exported component.
TidalGlobalSearch.closeLabelstring | undefinedOptional close label value accepted by this exported component.
TidalGlobalSearch.defaultTriggerLabelReactNodeOptional default trigger label value accepted by this exported component.
TidalGlobalSearch.defaultTriggerPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "dangerouslySetInnerHTML"> | undefinedOptional default trigger props value accepted by this exported component.
TidalGlobalSearch.defaultTriggerRefRef<HTMLButtonElement> | undefinedOptional default trigger ref value accepted by this exported component.
TidalGlobalSearch.dir"ltr" | "rtl" | undefinedOptional dir value accepted by this exported component.
TidalGlobalSearch.emptyContentReactNodeOptional empty content value accepted by this exported component.
TidalGlobalSearch.errorReactNodeOptional error value accepted by this exported component.
TidalGlobalSearch.inputLabelstring | undefinedOptional input label value accepted by this exported component.
TidalGlobalSearch.inputPlaceholderstring | undefinedOptional input placeholder value accepted by this exported component.
TidalGlobalSearch.inputPropsOmit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "children" | "dangerouslySetInnerHTML"> | undefinedOptional input props value accepted by this exported component.
TidalGlobalSearch.inputRefRef<HTMLInputElement> | undefinedOptional input ref value accepted by this exported component.
TidalGlobalSearch.loadingboolean | undefinedOptional loading value accepted by this exported component.
TidalGlobalSearch.loadingLabelstring | undefinedOptional loading label value accepted by this exported component.
TidalGlobalSearch.onResultSelect((resultId: string, result: TidalGlobalSearchResult, event: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void) | undefinedCallback invoked when the result select interaction is proposed.
TidalGlobalSearch.overlayPropsOmit<Omit<Dialog.DialogOverlayProps & RefAttributes<HTMLDivElement>, "ref">, "children" | "dangerouslySetInnerHTML" | "asChild" | "forceMount"> | undefinedOptional overlay props value accepted by this exported component.
TidalGlobalSearch.overlayRefRef<HTMLDivElement> | undefinedOptional overlay ref value accepted by this exported component.
TidalGlobalSearch.portalContainerHTMLElement | null | undefinedOptional portal container value accepted by this exported component.
TidalGlobalSearch.recentItemsReadonlyArray<TidalGlobalSearchResult> | undefinedOptional recent items value accepted by this exported component.
TidalGlobalSearch.recentLabelstring | undefinedOptional recent label value accepted by this exported component.
TidalGlobalSearch.resultsLabelstring | undefinedOptional results label value accepted by this exported component.
TidalGlobalSearch.shortcutKeysReadonlyArray<TidalShortcutKey> | undefinedOptional shortcut keys value accepted by this exported component.
TidalGlobalSearch.showKeyboardHintboolean | undefinedOptional show keyboard hint value accepted by this exported component.
TidalGlobalSearch.theme"light" | "dark" | undefinedOptional theme value accepted by this exported component.
TidalGlobalSearch.triggerReactElement<unknown, string | JSXElementConstructor<any>> | null | undefinedOptional trigger value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.