Skip to main content
FlowsJoining & AcceptingAccepting an invitation similar to WorkOS
shadcn/ui Flows

Accepting an invitationsimilar toWorkOS

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.

Install flow

Step 1 of 4Accept invitation

Every screen

The 4 steps in order. Pick one to open it in the preview above.

01Accept invitationSee who invited you to which team and role, confirm the prefilled address, or continue with Google.
02Create a passwordOn the hosted sign-in page, create a password for the new account or switch to a one-time email code.
03Verify your emailType the six-digit code sent to the invited address; it verifies on the last digit.
04Team overviewThe 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.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.