WorkspaceSwitcherContent
The menu the trigger opens (role="menu", named "Workspaces").
import { WorkspaceSwitcherContent } from '@/components/ui/goop/workspace-switcher';Options
- search?: boolean — A search field over the rows, by name and detail; the menu opens with the focus in it.
- searchPlaceholder?: string = 'Find a workspace…' — The search field's grey words while it is empty.
- searchLabel?: string = 'Find a workspace' — The search field's name for a screen reader.
- empty?: ReactNode = 'No workspace matches' — The line shown while no workspace matches the search.
- defaultSearch?: string = '' — The words the search field holds as the menu opens.
- Also takes: container?: HTMLElement | null