Accepting an invitationsimilar to
Clay
The invitee’s side of a workspace invitation in a data tool, for someone who has no account yet. The invitation page names the inviter, the workspace and the role, and its one button leads to sign-up. The sign-up form arrives with the invited address filled in and the invitation repeated above it, a password page shows what the user is joining, and the account opens straight inside the inviter’s workspace on a welcome card that names who added them and as what. The product around the pattern (the sign-up side panel and the workspace behind the welcome card) is drawn as a greyscale sketch to replace with your own app.
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
A new user goes from an invitation link to a teammate’s workspace: see who invited them, sign up with the invited address, set a password and land on a welcome card.
The invitation is restated on every page
The landing page, the sign-up intro ("accept your invite from Priya to Northwind GTM") and the password page’s "Joining" card all repeat the inviter and workspace. A user who opened the link a day later never wonders why they are creating an account.
The invited address is already filled in
The invitation knows the address it was sent to, so the email field starts with it and shows an "Invited" tag. Changing it to another valid address is caught on submit with an error that names the invited address, instead of creating an account that finds no invitation.
Sign-up is the accept button
There is no separate "Accept" step: creating the account accepts the invitation, and Google sign-up skips the password page altogether. A toast names the inviter and the role as the workspace opens.
The welcome card closes the loop
The user lands in the inviter’s workspace on one first-run card: "Welcome to Northwind GTM, Jordan", the inviter’s face with "added you as an editor", and a getting-started video. It can be put off with "Maybe later"; nothing else interrupts.
Step by step
- 01
Invitation
Who invited you, to which workspace, when, and with which address and role.
A trustworthy, specific page: a real person, a real workspace and an expiry date. The single button says what it does: sign up to accept.
- 02
Sign up
Sign up with Google, or with a full name and the invited email.
The invitation is restated above the form and the invited address is already in the email field, so the account is created for the right person.
- 03
Create your password
Set a password for the new account and join the workspace.
The address is shown read-only with a way back, the rules tick as they are met, and a "Joining" card with the workspace, role and inviter sits right above the button that accepts.
- 04
Welcome to the workspace
The inviter’s workspace opens on a welcome card: who added you, as what, and a getting-started video.
The toast and the card confirm the invitation did what it said, with the same inviter, workspace and role as the first page. The workspace behind it is a sketch of the product.
Built with shadcn/ui and Radix UI
- Button
- Input Group
- Field
- Avatar
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Clay is a trademark of its owner; this page is not affiliated with or endorsed by Clay.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-clay-accepting-an-invitation. The shadcn CLI copies the flow into components/flows/clay-accepting-an-invitation/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-clay-accepting-an-invitation) and React Aria (@shadcnpro/aria/flow-clay-accepting-an-invitation) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Clay's joining & accepting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Clay is a trademark of its owner, and this page is not affiliated with or endorsed by Clay.
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/clay-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 name and a password that meets the rules create the account, and Google sign-up uses the invited address. In a real app, look the invitation up from its token, create the account with your auth provider, accept the invitation on the server for the verified invited email, and redirect to the workspace with the stored role. The sign-up side panel and the workspace are sketches: replace them with your own preview and app.
Button, Input Group, 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 one centred column. Below the large breakpoint the product panel next to the sign-up and password forms is hidden. In the workspace the welcome card moves above the sketched list and the sketch drops its side links and extra columns.