Component libraryWorkspace switcher
Components/Navigation

Workspace switcher

Pro

Search and switch among consumer-owned workspaces with exact roles, statuses, form values, and native create or manage destinations.

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

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

Consumer-owned workspaces require unique nonblank IDs, names, roles and statuses. Controlled query/open/highlightedWorkspaceId/activeWorkspaceId state proposes search, keyboard and pointer changes without navigation or persistence. Search matches only supplied IDs, names, roles, statuses and terms. Unknown active IDs fail through the Combobox input's linked error; malformed records fail visibly. Disabled or unavailable workspaces remain inspectable when active and cannot be newly selected. Optional native hidden input name/form serializes the exact active workspace ID. Native create/manage hrefs preserve modified navigation, expose independent disabled state, refs and anchor attrs, and perform no route or account action internally. Disabled destinations omit href, block primary and auxiliary activation, and leave the Tab order. Label, description, hint, error, input/toggle/hidden refs and safe native props, read-only selection, empty/outside-results states, 44px destinations, 16px narrow search, RTL, forced colors and reduced motion are supported.

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.