Accepting a team invitationsimilar to
Linear
The invitee’s side of a workspace invitation in an issue tracker. The invitation page says who invited you, to which workspace, team and role, and which address to log in with. Login is passwordless and checks that address, a workspace picker turns the pending invitation into a Join button, and the user lands in the app with a short tip about its Active issues view.
Every screen
The 6 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 goes from the invitation page to the team’s issues: log in as the invited address, verify it with a login link or code, join the workspace and land on a first-run tip.
The invitation names the account it was sent to
Instead of a generic "Accept" button, the page says "log in as alex.morgan@halcyon.app". People with a personal and a work account pick the right one first time, and the server can match the invitation to the user without a token in every later request.
Wrong account is caught before the inbox
If the user types another address, the login form says which address the invitation was sent to and stays put, rather than sending a login email to an account that will find no invitation behind it.
Joining is its own decision
After login the user sees every workspace they can enter, with the inviter on the row, and joins with one button. Accounts that already belong to a workspace, or have several invitations, get the same screen, so routing is one rule: log in, then pick.
Context carries through to the landing
Workspace, team and role shown on the invitation are what the user lands in: a toast confirms the role and team, the sidebar opens on Halcyon, and a first-run tip explains the view they landed on. The issue tracker around it is a wireframe sketch where your own app goes.
Step by step
- 01
Invitation
Who invited you, to which workspace, team and role, and which address to log in with.
Naming the inviter and the workspace makes the page trustworthy; naming the address prevents joining with the wrong account.
- 02
Log in
Pick a login method: Google, email, SAML SSO or passkey.
All methods on one screen, with a "Joining Halcyon" pill so the invitation is not forgotten. New users go through the same buttons; the account is created on the way.
- 03
Log in with email
Type the invited address and continue.
The field appears in place under Google, so the page does not change. The address is checked against the invitation before any email is sent.
- 04
Check your email
Open the login link from the inbox, or type the 6-digit code by hand.
The link verifies the address; the code is the fallback when the email is opened on another device.
- 05
Join the workspace
The workspaces this account can enter, with Join on the invited one.
Joining is an explicit choice the user can see the result of, and the same screen handles several workspaces or none.
- 06
Team issues
The joined workspace with a first-run tip explaining the Active issues view, over a wireframe sketch where your own app goes.
The user lands where the invitation pointed, a toast confirms the role and team, and one short tip is the only thing asking for attention.
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. Linear is a trademark of its owner; this page is not affiliated with or endorsed by Linear.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-linear-accepting-a-team-invitation. The shadcn CLI copies the flow into components/flows/linear-accepting-a-team-invitation/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-linear-accepting-a-team-invitation) and React Aria (@shadcnpro/aria/flow-linear-accepting-a-team-invitation) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Linear's joining & accepting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Linear is a trademark of its owner, and this page is not affiliated with or endorsed by Linear.
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/linear-accepting-a-team-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 well-formed 6-digit code is accepted, "Open Gmail" acts as if the login link was clicked, and Google login signs in as the invited address. In a real app, resolve the invitation from its token, send the magic link or code from your auth provider, accept the invitation on the server only for the verified invited email, and redirect to the team the invitation 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 logged-out pages are single centred columns that fit a phone. In the sketched app the sidebar is hidden below the medium breakpoint and the rows drop their side columns on narrow screens, and the tip card shrinks to the screen width.