Inviting a team membersimilar to
Stripe
The invite pattern for products where access is decided by role, not by seat. One dialog takes any number of addresses and a set of roles at once, explains in plain words what the chosen roles let people do, and sends. The invitations land in the members table straight away as pending rows, so the person who sent them can see who still has to accept and can resend or take back an invitation without leaving the page.
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
Invite people to a dashboard from the team page: several addresses as chips, roles picked from a grouped checklist with live descriptions, and pending rows you can resend or revoke.
Many addresses, one field
Typing, a comma, a space or Enter turns an address into a chip; pasting a list from a spreadsheet or an email splits it in one go. Backspace on an empty field removes the last chip, and each chip has its own remove button.
Mistakes are caught where they are made
A malformed address stays in the field as a red chip so the user sees exactly which one to fix. Duplicates, people already on the team and people with a pending invitation are not added at all, with a one-line reason under the field.
Roles explain themselves
Roles are grouped (admin, developer, payments, support…) and searchable, and every ticked role appears on the right with a sentence about what it allows. A note says the permissions add up, so nobody wonders which role wins.
Pending is a state, not a promise
Sent invitations show up in the members table with an "Invitation sent" badge, the roles they will get and who sent them. The count under the table includes them, and a row menu resends, copies the invite link or revokes.
Step by step
- 01
Team members
The members table, with the "New member" button above it. The dashboard and the people already on the team are a wireframe sketch where your own app goes.
Inviting starts where people are managed, so the result shows up in the same table a moment later.
- 02
Enter email addresses
Type or paste one or more addresses; each becomes a chip that can be removed.
Inviting several people with the same access is the common case, so the field takes a list instead of one address at a time.
- 03
Choose roles
Tick one or more roles from the grouped, searchable list and read what each one allows.
Role names like "Analyst" mean different things in different companies. Showing the description next to the choice prevents giving too much or too little access.
- 04
Invitations sent
The invitees appear in the table as pending, with their roles and a menu to resend, copy the link or revoke.
Seeing the pending rows confirms the invitations went out and gives the admin a place to follow up if someone never accepts.
Built with shadcn/ui and Radix UI
- Button
- Checkbox
- Field
- Label
- Input Group
- Dropdown Menu
- Kbd
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Stripe is a trademark of its owner; this page is not affiliated with or endorsed by Stripe.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-stripe-inviting-a-team-member. The shadcn CLI copies the flow into components/flows/stripe-inviting-a-team-member/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-stripe-inviting-a-team-member) and React Aria (@shadcnpro/aria/flow-stripe-inviting-a-team-member) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Stripe's inviting teammates & friends flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Stripe is a trademark of its owner, and this page is not affiliated with or endorsed by Stripe.
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/stripe-inviting-a-team-member.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 members are a local list, Send invites waits a moment and adds pending rows to it, and resend, copy link and revoke only update the list and show a toast. In a real app, post the addresses and roles to your invitations endpoint, email each person a signed link, and load members and pending invitations from your API.
Button, Checkbox, Field, Label, Input Group, Dropdown Menu, Kbd 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. Below the medium breakpoint the sketched sidebar is hidden and the toolbar stacks with "New member" on its own row; the members table scrolls sideways in its container. Below the large breakpoint the dialog becomes a single column and the role description panel is hidden, so the checklist gets the full width.