Workspace Label
A comprehensive workspace switcher with member avatars, pending request notifications, collapsible info card panel, and keyboard shortcuts for rapid workspace navigation.
Preview
🏠
Personal5 members
J
J
B
+2
Installation
Use the CLI to add this component to your project.
Usage
tsx
31 linesCopy
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| ⌘, | Toggle info card panel |
| ⌘1 – ⌘9 | Switch to workspace 1–9 |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
workspaces | WorkspaceItem[] | - | List of workspaces to display in the switcher. |
members | MemberItem[] | [] | Team members shown as stacked avatars. |
pendingRequests | PendingRequest[] | [] | Pending join requests — shows an animated bell badge when non-empty. |
activeWorkspaceId | string | undefined | ID of the currently active workspace. |
onWorkspaceChange | (id: string) => void | undefined | Called when the user selects a different workspace. |
onCreateWorkspace | () => void | undefined | Called when the Create workspace button is clicked. |
onInvite | () => void | undefined | Called when the Invite quick action is clicked. |
onViewRequests | () => void | undefined | Called when the Requests quick action or bell badge is clicked. |
onSettings | () => void | undefined | Called when the settings icon in the info card footer is clicked. |
updatedAt | string | undefined | Optional last-updated label shown in the info card header. |