Joining a workspacesimilar to
Sana
The invitee’s side of joining a team’s AI assistant. The invitation page says which workspace, who invited you, how many people are already there, your role and the address the invitation was sent to. Accepting leads to a combined sign-in / sign-up page that names the workspace being joined, a 6-digit code confirms the address, and the user lands on the workspace’s home with a greeting by name, a welcome card saying who shared what, and their own row with the role they were given.
Every screen
The 4 steps in order. Pick one to open it in the preview above.
Installation
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Why this flow works
An invitee accepts an invitation to an AI assistant workspace, signs in with the invited address or Google, confirms a 6-digit code and lands on a first-run "For you" home.
Accept first, authenticate second
The invitation is readable without an account: the workspace, inviter, member count and role are shown before any login wall, so the user decides to join while the context is in front of them. Sign-in comes after, and creates the account on the way when there is none.
One sign-in page for new and returning users
Google or a work email, nothing else. The page does not ask whether you already have an account; the code email works for both, and a "Joining Fernhill · invited by Maya" pill keeps the invitation in view.
The wrong address is caught before an email goes out
The email is checked against the invitation on submit. Another address gets an inline error naming the invited one, instead of a code email for an account that has no invitation behind it.
Joining is confirmed where the user lands
The code step’s button reads "Join Fernhill", and the home screen opens with a toast naming the role and the new member count, a greeting with the user’s name, a welcome card saying what the inviter shared, and the user’s row with their role. The rest of the home is a wireframe sketch where your own app goes.
Step by step
- 01
Invitation
Which workspace, who invited you, how many members, your role and the invited address.
The user sees what they are joining before any login, and the invited address is stated up front so the right account is used.
- 02
Sign in or create an account
Continue with Google, or type the work email the invitation was sent to.
One page for new and returning users. The "Joining Fernhill" pill keeps the invitation in view, and the address is checked against it before any email goes out.
- 03
Check your email
Enter the 6-digit code from the email, or open the inbox, to confirm the address and join.
The code proves the user owns the invited address; the button says "Join Fernhill" because this is the moment they become a member.
- 04
Workspace home
The landing: a greeting by name, a welcome card about what the inviter shared, and the user row with the role, over a sketch of the workspace.
The user lands inside the workspace the invitation named and sees it confirmed: their name, the inviter, the role. The home around it is a wireframe sketch where your own app goes.
Built with shadcn/ui and Radix UI
- Button
- Input
- Input OTP
- Field
- Avatar
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Sana is a trademark of its owner; this page is not affiliated with or endorsed by Sana.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-sana-joining-a-workspace. The shadcn CLI copies the flow into components/flows/sana-joining-a-workspace/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-sana-joining-a-workspace) and React Aria (@shadcnpro/aria/flow-sana-joining-a-workspace) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Sana's joining & accepting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Sana is a trademark of its owner, and this page is not affiliated with or endorsed by Sana.
Yes, the flow is a pattern, not a fixed template. A step you add should follow the same rules as the others, listed under Step anatomy in the flow spec, so it reads as part of the same flow.
Use the prompt in the Installation section. The agent installs the flow, then reads the flow spec at https://pro.shadcn.co/flows/sana-joining-a-workspace.md, which describes the layout, the rules every step follows, each step's fields and actions, and how to adapt the flow. That way it builds a version with your brand and your steps instead of a one-to-one copy.
Nothing is sent: the invitation is a constant in `content.ts`, any 6-digit code is accepted, "Open Gmail" acts as if the email link was clicked, and Google signs in as the invited address. In a real app, resolve the invitation from its token, send the code or magic link from your auth provider, accept the invitation on the server only for the verified invited email, and fill the welcome card from what the inviter shared.
Button, Input, Input OTP, Field, Avatar and Sonner, in their Radix UI versions. Everything else is plain markup with Tailwind CSS.
Yes. The flow only uses semantic tokens such as bg-background, bg-card and text-muted-foreground, so it picks up your colours, radius and fonts and switches with dark mode. Use the theme menu above the preview to see it in the Pro themes.
Yes. The invitation is a single centred card. Below the large breakpoint the sign-in pages drop the product preview and keep the form column. On the landing the greeting stays on top; the sidebar with the welcome card and user row is hidden below the medium breakpoint, and the sketched workspace stacks.