# Application Auth Page: Workspace Picker Page

Post sign in workspace chooser listing memberships with marks, member counts, and role badges, plus a create workspace action and sign out link.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/workspace-picker-page
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Auth Pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/workspace-picker-page.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-auth-pages-workspace-picker-page
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/auth-pages/workspace-picker-page`

## About this block

Workspace Picker Page is the chooser shown after sign in
when the signed in email belongs to more than one
workspace. The intro names the account (maya@acme.com) and
explains these are the workspaces where that email is a
member. Each row carries the workspace mark, its member
count, and a role badge, with the primary workspace marked
by a filled tile so the default reads at a glance. A create
a new workspace action sits below the list for anyone
starting fresh rather than joining.

Workspaces are one typed const array of initial, name,
members, role, and primary. The divider note handles the
missing workspace case by pointing users to ask an admin
for an invite or sign in with the email that workspace
knows them by, and the footer offers a sign out escape
hatch for the wrong account.

## When to use

Reach for this block right after authentication when the
account maps to several workspaces, wired to your workspace
switch endpoint. Resolve the memberships server side so the
list and roles reflect real access, then route the picked
row into that workspace.

A natural flow around it on an Application Pro page:

**Before**

- [Auth pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages)

**After**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)

## What you can display

One strong use is the multi-workspace chooser. Other
shapes:

- **Recent first.** The list ordered by last active with a
  timestamp under each name instead of a member count.
- **Pending invites.** Rows the user has been invited to
  but not yet joined, each with a join action.
- **Single workspace redirect.** The auto-forward state
  when only one membership exists, no picker shown.

> Tip: name the signed in email at the top of the picker;
> on a shared machine it catches the wrong account before
> the user drops into a workspace that is not theirs.

## More in Application Auth Pages

- [Accept Invite Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/accept-invite-page)
- [Account Linking Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/account-linking-page)
- [Account Recovery Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/account-recovery-page)
- [Approval Pending Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/approval-pending-page)
- [Backup Codes Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/backup-codes-page)
- [Deactivated Account Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/deactivated-account-page)
- [Device Approval Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/device-approval-page)
- [Email Changed Confirm](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/email-changed-confirm)
- [Forgot Password Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/forgot-password-page)
- [Join Workspace Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/join-workspace-page)
- [Locked Account Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/locked-account-page)
- [Magic Link Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/magic-link-page)
- [MFA Enrollment Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/mfa-enrollment-page)
- [Oauth Callback Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/oauth-callback-page)
- [Oauth Consent Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/oauth-consent-page)
- [Passkey Setup Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/passkey-setup-page)
- [Password Expired Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/password-expired-page)
- [Reset Password Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/reset-password-page)
- [Session Expired Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/session-expired-page)
- [Sign In Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sign-in-page)
- [Sign Up Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sign-up-page)
- [Sso Error Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sso-error-page)
- [Sso Login Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/sso-login-page)
- [Two Factor Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/two-factor-page)
- [Verify Email Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/verify-email-page)
- [Welcome Back Login](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages/welcome-back-login)
