Skip to content
Back

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
The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add team-switcher

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Menu

Search, roles, shortcuts, create and join.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Closed

The trigger alone.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Rail

Tile only, for an icon rail (Oxyn plus).

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

TeamSwitcher

PropTypeDefaultDescription
workspacesrequiredVec<Workspace>—Workspaces.
valueOption<String>Default::default()Active id.
compactboolDefault::default()Tile only.
openboolDefault::default()Start open.
delayu32650Simulated switch ms.
on_changeEventHandler<String>—Switched (id).

WorkspaceTile

PropTypeDefaultDescription
workspacerequiredWorkspace—Workspace.
sizef3228.0Size px.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
Enteror↓Open and focus the search
TypeFilter by name, plan or role
↑ ↓Move the highlight
EnterSwitch, or open Create / Join
⌘orCtrl1–9Switch to that workspace
EscapeBack, 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
TransitionDurationEasingReduced motion
Panel in180 msease.outfade
Switch650 ms (demo)—same
Shimmer1.2 s looplinearstatic

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, WorkspaceTile from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: TeamSwitcherEl in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI