Product-quality dropdown for switching SaaS workspaces, organizations, or projects.
WorkspaceSwitcher gives multi-tenant product shells a consistent place to show the current workspace and move between organizations or projects.
Show the current workspace with plan and secondary context.
<WorkspaceSwitcher
defaultValue="frogg"
workspaces={[
{ id: "frogg", name: "FroggDesign", description: "Design system", plan: "Pro" },
{ id: "enter", name: "EnterUI", description: "Component docs", plan: "Team" },
{ id: "labs", name: "Frogg Labs", description: "Experiments", plan: "Free" },
]}
/>import { WorkspaceSwitcher } from "@froggdesign/enter-ui-react";<WorkspaceSwitcher
value={workspaceId}
onValueChange={setWorkspaceId}
onCreateWorkspace={openCreateWorkspace}
workspaces={workspaces}
/>Use this in top bars, sidebars, and app shells for org, workspace, project, account, or environment switching. Keep descriptions short enough to scan in a menu.
The trigger is a real button and the menu uses DropdownMenu keyboard behavior. The current workspace is represented in the trigger and active menu item styling.
workspaces: { id, name, description?, avatar?, plan? }[].value: controlled workspace id.defaultValue: initial workspace id.onValueChange: called with the selected workspace id.onCreateWorkspace: optional create action at the end of the menu.disabled: disables the trigger.WorkspaceSwitcher uses .eui-workspace-switcher classes and FroggDesign tokens for layout, state, focus, and disabled styling.