Team switcherPro
A workspace switcher like Linear or Slack: the current tile and plan, search, roles, ⌘1–9, inline create and join, and a shimmering switch.
oxyn add team-switcher- AcmePro · Owner · 12 members
- Lumen LabsTeam · Admin · 48 members
- Oxyn OSSFree · Member · 5 members
- PersonalFree · Owner
- Create workspace
- Join with invite
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Switch between workspaces or orgs at the top of the sidebar, like Linear, Vercel or Slack.
When not to use
- Your account behind the avatar: use User menu instead.
- An app sidebar: use Sidebar instead.
- Search and run anything from one field: use Command palette instead.
Installation
Team switcher is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add team-switcherUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Menu
Search, roles, shortcuts, create and join.
- AcmePro · Owner · 12 members
- Lumen LabsTeam · Admin · 48 members
- Oxyn OSSFree · Member · 5 members
- PersonalFree · Owner
- Create workspace
- Join with invite
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Closed
The trigger alone.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Rail
Tile only, for an icon rail (Oxyn plus).
- AcmePro · Owner · 12 members
- Lumen LabsTeam · Admin · 48 members
- Oxyn OSSFree · Member · 5 members
- PersonalFree · Owner
- Create workspace
- Join with invite
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
TeamSwitcher
| Prop | Type | Default | Description |
|---|---|---|---|
workspacesrequired | Vec<Workspace> | — | Workspaces. |
value | Option<String> | Default::default() | Active id. |
compact | bool | Default::default() | Tile only. |
open | bool | Default::default() | Start open. |
delay | u32 | 650 | Simulated switch ms. |
on_change | EventHandler<String> | — | Switched (id). |
WorkspaceTile
| Prop | Type | Default | Description |
|---|---|---|---|
workspacerequired | Workspace | — | Workspace. |
size | f32 | 28.0 | Size px. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Enteror↓ | Open and focus the search |
| Type | Filter by name, plan or role |
| ↑ ↓ | Move the highlight |
| Enter | Switch, or open Create / Join |
| ⌘orCtrl1–9 | Switch to that workspace |
| Escape | Back, clear, then close |
Accessibility
- Trigger: aria-haspopup=dialog, aria-expanded, aria-busy while switching.
- Search is a combobox with aria-activedescendant; the current workspace is aria-selected with a check.
- A polite region announces switches.
From the spec
Search is a combobox with aria-activedescendant; the current workspace is aria-selected with a check; a polite region announces switches.
Motion & interaction
The panel fades and scales in from 98 %; switching crossfades the trigger and shimmers the plan line; views shift 6 px in the direction of travel.
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Panel in | 180 ms | ease.out | fade |
| Switch | 650 ms (demo) | — | same |
| Shimmer | 1.2 s loop | linear | static |
Responsive behaviour
- The panel caps at the viewport minus a gutter.
Edge cases (spec)
No match: Enter opens Create with the name filled in. Home / End only move when the search is empty.
Notes for AI
- Import
TeamSwitcher,WorkspaceTilefromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
TeamSwitcherElinoxyn_gpui. - Props to set first:
workspaces,workspace. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.