Component librarySearch results
Components/Blocks

Search results

Pro

A controlled grouped search view with a native query field, type filters, result counts, destinations, actions, and an explicit empty state.

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

Import components/ui/tidal.css, components/ui/search-results.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

title, controlled queryControl, consumer-owned filters/selectedFilterId/onFilterChange, grouped results, resultCount and resultCountLabel are required. Query control uses a native controlled search input with label, optional placeholder, attributes/ref and native-handler-first prevented composition; conflicting type/value/defaultValue/placeholder props are excluded. Filters are native pressed buttons with visible and accessible labels, counts, disabled state, attributes/refs and prevented-event composition. Groups and items remain consumer-owned with attributes/refs. Each result requires a typed native link or button action with an accessible label. Links preserve href, modified navigation, attributes/ref and explicit aria-disabled false; disabled links suppress caller handling/navigation. Buttons preserve type/form/disabled/attributes/ref and invoke onAction only after an unprevented native click. Optional labels, heading level, empty copy/action, footer and native section attributes/ref remain consumer-owned. The component performs no search, filtering, request, routing, 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.