Magoo Component UI logo Magoo Component UI
← Catalog

Workspace Switcher

workspace-switcher molecule experimental

A dropdown that shows the current org/workspace and switches between the ones a user belongs to.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Open

Props

NameTypeReq
current string
workspaces array ✓
start_open boolean

Related components

How to use

Clicking the trigger toggles the menu (data-open on the root); Escape or an outside click closes it. Arrow keys move between workspace rows. Choosing a row updates the trigger label, moves the check mark, and dispatches workspace:switch with { value }. The footer dispatches workspace:create. Set start_open true to render it already open.

Use cases

list-itemhighlight WCAG AA SEO 35 dir: both ai-generated