Inviting a usersimilar to
Mercury
Inviting someone to a bank account is a permissions decision before it is an email. This wizard asks for the person, then the role, then the money they can spend, and only then shows a review that spells out what the role can and can’t do. The invite is sent from the review, and the person appears on the Users page straight away as Invited, with resend, copy link and revoke one menu away. The settings pages around it, including the people who already have access, are a wireframe sketch where your own app goes.
Every screen
The 7 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 business bank’s invite wizard: who the person is, the role that decides what they can see and move, an optional card with spending limits, a review with the exact permissions, then a pending row with resend and revoke.
The email is checked against everyone who already has access
A malformed address, a teammate who is already a member and an address with a pending invite each get their own message under the field. The last one points to Resend on the Users page instead of creating a second invite for the same person.
Roles are described by what they allow, not by their name
Each role is a card with one sentence of access. Custom opens a short list of permissions inside its own card, and the review lists what the chosen role can and can’t do under View permissions, so the sender confirms the access, not a label.
The role shapes the rest of the wizard
Bookkeepers can’t hold cards, so choosing Bookkeeper skips the card step, strikes it out in the stepper and says why on the review. Every other role gets an optional card step with a visible “Skip card for now”.
Sending creates a pending member, not just an email
The confirmation offers to keep inviting. Done inviting lands on Users, where the new row carries an Invited badge, the date it was sent and a menu to resend, copy the link or revoke, with Undo in the toast for a revoke made by mistake.
Step by step
- 01
Users
The team settings page with the Invite user button; the people who already have access are a sketched list.
The invite starts where the team is managed, next to the list of people who already have access. That list is a wireframe sketch where your own members table goes.
- 02
Invite details
Enter the person’s legal name and email, and optionally their job title and department.
A bank needs the legal name for the cardholder and records. The email is checked before moving on, so a typo or a duplicate never reaches the review.
- 03
Assign role
Choose Admin, Custom, Bookkeeper or Employee.
The role is the decision that matters most, so it gets a whole screen of cards that describe access in plain words. Custom reveals its permissions in place.
- 04
Issue cardOptional
Optionally give them a debit card with a nickname, type, source account, spend control and limit.
Handing over a card is part of inviting an employee, so it happens in the same wizard, but it is optional and skippable in one click.
- 05
Review and send
Check the person, the role and its permissions, and the card, then send the invite.
Everything that will be granted is on one screen, with Edit and Change role links back to each step and the exact email the invite goes to.
- 06
Invite sent
The invite is on its way and a toast confirms it; invite the next person or finish.
The moment after a successful invite is the best time to ask for the next one, so the primary action starts a fresh invite.
- 07
Pending invite
The new person is on the Users page as Invited, with resend, copy link and revoke.
An invite that hasn’t been accepted is still access in waiting, so it is listed with the members and stays manageable until it is accepted or revoked.
Built with shadcn/ui and Radix UI
- Button
- Input
- Input Group
- Field
- Select
- Radio Group
- Checkbox
- Collapsible
- Separator
- Avatar
- Badge
- Table
- Dropdown Menu
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Mercury is a trademark of its owner; this page is not affiliated with or endorsed by Mercury.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-mercury-inviting-a-user. The shadcn CLI copies the flow into components/flows/mercury-inviting-a-user/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-mercury-inviting-a-user) and React Aria (@shadcnpro/aria/flow-mercury-inviting-a-user) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Mercury's inviting teammates & friends flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Mercury is a trademark of its owner, and this page is not affiliated with or endorsed by Mercury.
Yes, the flow is a pattern, not a fixed template. Issue card is optional and can be left out on its own. 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/mercury-inviting-a-user.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.
The checks are real: the email is validated against the sample members and pending invites, roles change the steps, and sending adds a pending row that can be resent or revoked. Nothing leaves the browser: sending waits a second and shows a toast, and the copied invite link is a placeholder. In a real app, send the invite from your API, store the pending member with an expiring token, and email the link.
Button, Input, Input Group, Field, Select, Radio Group, Checkbox, Collapsible, Separator, Avatar, Badge, Table, Dropdown Menu 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 large breakpoint the sketched settings sidebar and the wizard’s side stepper are hidden; the wizard shows “Step 2 of 4” above the heading instead. The name fields and the card form’s label column stack, the users table keeps the name and status on phones, and the confirmation shows fewer cards around the new one.