Workspace switcher preview
Search and switch among consumer-owned workspaces with exact roles, statuses, form values, and native create or manage destinations.
pro · Navigation · composite
When to use
- Use it when a page needs search and switch among consumer-owned workspaces with exact roles, statuses, form values, and native create or manage destinations.
- 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 workspace switcher.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/workspace-switcherImport components/ui/tidal.css, components/ui/workspace-switcher.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/workspace-switcher.css";
import{TidalWorkspaceSwitcher}from"./components/ui/workspace-switcher";
export default(p:Parameters<typeof TidalWorkspaceSwitcher>[0])=><div className="tidal-scope"><TidalWorkspaceSwitcher {...p}/></div>;API and props
TidalWorkspaceSwitcher.activeWorkspaceId (required)string | nullRequired active workspace id value accepted by this exported component.
TidalWorkspaceSwitcher.label (required)ReactNodeRequired label value accepted by this exported component.
TidalWorkspaceSwitcher.onHighlightedWorkspaceChange (required)(workspaceId: string | undefined, event: TidalComboboxActiveEvent) => voidCallback invoked when the highlighted workspace change interaction is proposed.
TidalWorkspaceSwitcher.onOpenChange (required)(open: boolean, event: TidalComboboxOpenEvent) => voidCallback invoked when the open change interaction is proposed.
TidalWorkspaceSwitcher.onQueryChange (required)(value: string, event: ChangeEvent<HTMLInputElement>) => voidCallback invoked when the query change interaction is proposed.
TidalWorkspaceSwitcher.onWorkspaceChange (required)(workspace: TidalWorkspaceOption, event: TidalComboboxSelectionEvent) => voidCallback invoked when the workspace change interaction is proposed.
TidalWorkspaceSwitcher.open (required)booleanRequired open value accepted by this exported component.
TidalWorkspaceSwitcher.query (required)stringRequired query value accepted by this exported component.
TidalWorkspaceSwitcher.workspaces (required)ReadonlyArray<TidalWorkspaceOption>Required workspaces value accepted by this exported component.
TidalWorkspaceSwitcher.createDisabledboolean | undefinedOptional create disabled value accepted by this exported component.
TidalWorkspaceSwitcher.createHrefstring | undefinedOptional create href value accepted by this exported component.
TidalWorkspaceSwitcher.createLabelReactNodeOptional create label value accepted by this exported component.
TidalWorkspaceSwitcher.createLinkPropsDestinationProps | undefinedOptional create link props value accepted by this exported component.
TidalWorkspaceSwitcher.createLinkRefRef<HTMLAnchorElement> | undefinedOptional create link ref value accepted by this exported component.
TidalWorkspaceSwitcher.descriptionReactNodeOptional description value accepted by this exported component.
TidalWorkspaceSwitcher.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalWorkspaceSwitcher.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalWorkspaceSwitcher.errorReactNodeOptional error value accepted by this exported component.
TidalWorkspaceSwitcher.formstring | undefinedOptional form value accepted by this exported component.
TidalWorkspaceSwitcher.hiddenInputPropsOmit<InputHTMLAttributes<HTMLInputElement>, "disabled" | "form" | "name" | "type" | "value" | "defaultValue" | "children" | "dangerouslySetInnerHTML" | "readOnly"> | undefinedOptional hidden input props value accepted by this exported component.
TidalWorkspaceSwitcher.hiddenInputRefRef<HTMLInputElement> | undefinedOptional hidden input ref value accepted by this exported component.
TidalWorkspaceSwitcher.highlightedWorkspaceIdstring | undefinedOptional highlighted workspace id value accepted by this exported component.
TidalWorkspaceSwitcher.hintReactNodeOptional hint value accepted by this exported component.
TidalWorkspaceSwitcher.inputPropsOmit<InputHTMLAttributes<HTMLInputElement>, "disabled" | "type" | "value" | "defaultValue" | "role" | "aria-activedescendant" | "aria-autocomplete" | "aria-controls" | "aria-disabled" | "aria-expanded" | "aria-readonly" | "children" | "dangerouslySetInnerHTML" | "placeholder" | "readOnly"> | undefinedOptional input props value accepted by this exported component.
TidalWorkspaceSwitcher.inputRefRef<HTMLInputElement> | undefinedOptional input ref value accepted by this exported component.
TidalWorkspaceSwitcher.labelsPartial<{ listbox: string; open: string; close: string; selected: ReactNode; noSelection: ReactNode; readOnly: ReactNode; searchPlaceholder: string; invalid: ReactNode; outsideResults: ReactNode; }> | undefinedOptional labels value accepted by this exported component.
TidalWorkspaceSwitcher.manageDisabledboolean | undefinedOptional manage disabled value accepted by this exported component.
TidalWorkspaceSwitcher.manageHrefstring | undefinedOptional manage href value accepted by this exported component.
TidalWorkspaceSwitcher.manageLabelReactNodeOptional manage label value accepted by this exported component.
TidalWorkspaceSwitcher.manageLinkPropsDestinationProps | undefinedOptional manage link props value accepted by this exported component.
TidalWorkspaceSwitcher.manageLinkRefRef<HTMLAnchorElement> | undefinedOptional manage link ref value accepted by this exported component.
TidalWorkspaceSwitcher.namestring | undefinedOptional name value accepted by this exported component.
TidalWorkspaceSwitcher.readOnlyboolean | undefinedOptional read only value accepted by this exported component.
TidalWorkspaceSwitcher.toggleButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "type" | "aria-controls" | "aria-disabled" | "aria-expanded" | "aria-label" | "children" | "dangerouslySetInnerHTML"> | undefinedOptional toggle button props value accepted by this exported component.
TidalWorkspaceSwitcher.toggleButtonRefRef<HTMLButtonElement> | undefinedOptional toggle button ref value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.