Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProThe sidebar workspace switcher: a trigger that names the current workspace, a radio group with plans written as text and Create workspace as a separate action.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use this at the top of a sidebar or header in multi-tenant apps where one person belongs to several teams or organisations.
Do not use it for more than about ten workspaces (use a searchable list) or to switch between pages.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
workspaces | { id, name, plan? }[] | - | Available workspaces. |
currentId | string | - | The active workspace. |
onSwitch | (id: string) => void | - | Called when another is chosen. |
onCreate | () => void | - | Called by Create workspace. |
menuitemradio, so exactly one is checked and announced as such; plans are text, not colour.menuitem after a separator, so it is never mistaken for a workspace.| Key | Action |
|---|---|
| Enter, Space or ArrowDown | opens the list |
| Arrow keys | move; Enter selects and closes |
| Escape | closes |
The pattern ships a Testing Library test (menu-workspace-switcher.test.tsx) that covers the trigger name, one checked workspace, switching and creating.