Accepting an invitationsimilar to
WorkOS
The invitee’s side of a team invitation in a developer platform. The invitation page names the team, the inviter and the role, with the invited address already filled in. A new user creates a password (or picks a one-time email code) on the hosted sign-in page, verifies the address with a six-digit code, and the membership is created the moment the code checks out. They land on the team’s overview with a banner saying who they joined and as what, and the join at the top of the team’s activity. The marketing panel beside the sign-in form and the dashboard around the banner are a wireframe sketch where your own app goes.
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 invited developer goes from the invitation link to the team’s dashboard: confirm the invited address, create a password or use an email code, verify the address and land on the overview with a welcome banner.
The invited address is prefilled and enforced
The link carries the invitation, so the email field already holds sam.rivera@northwind.dev. Changing it to another address shows which address the invitation was sent to and stops there, instead of creating an account that will find no invitation behind it.
Account creation and joining are one journey
There is no separate "Join" screen: accepting the invitation is the reason the account exists. Password, email code and Google all end in the same place, and Google skips verification because the provider has already confirmed the address.
Verification is the join
The six-digit code auto-submits on the last digit, shows "Verifying…" and only then adds the user to the team. Until the address is proven, the invitation stays pending on the inviter’s side.
The landing confirms what the invitation promised
Team and role shown on the invitation are what the user lands in: the header opens on Northwind, the banner says "You joined Northwind as a Developer" with the teammates’ faces, and the team activity shows both the invitation and the join.
Step by step
- 01
Accept invitation
See who invited you to which team and role, confirm the prefilled address, or continue with Google.
The inviter, team and role make the page trustworthy, and the prefilled address keeps the account and the invitation matched.
- 02
Create a password
On the hosted sign-in page, create a password for the new account or switch to a one-time email code.
The invitee is new, so accepting means creating an account; the email is fixed by the invitation and shown as text.
- 03
Verify your email
Type the six-digit code sent to the invited address; it verifies on the last digit.
Proving the address is what turns the pending invitation into a membership.
- 04
Team overview
The team’s dashboard (a wireframe sketch where your own app goes) with the welcome banner and the join at the top of the team activity.
The user lands where the invitation pointed and can see, in one glance, which team they joined, as what, and who is already there.
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. WorkOS is a trademark of its owner; this page is not affiliated with or endorsed by WorkOS.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-workos-accepting-an-invitation. The shadcn CLI copies the flow into components/flows/workos-accepting-an-invitation/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-workos-accepting-an-invitation) and React Aria (@shadcnpro/aria/flow-workos-accepting-an-invitation) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of WorkOS's joining & accepting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. WorkOS is a trademark of its owner, and this page is not affiliated with or endorsed by WorkOS.
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/workos-accepting-an-invitation.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 password of 10+ characters and any 6-digit code are accepted, and Google signs in as the invited address. In a real app, resolve the invitation from its token, create the user and send the code through your auth provider, accept the invitation on the server only for the verified invited email, and redirect to the team it names.
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 and verify pages are single centred columns. The password page hides its sketched pitch panel below the large breakpoint, leaving the form column. In the dashboard the sketched sidebar is hidden below the medium breakpoint, the welcome banner stacks its avatars, text and buttons, and the sketched cards stack.