Inviting a usersimilar to
Melio
In a payments product an invite is really a decision about money: who can pay bills, and how much they can pay before someone checks. This panel keeps that decision on one screen next to the people who already have access. The name and email come first, the role list says what each role can do, and choosing a role that can pay reveals an approval switch with a dollar threshold. Sending closes the panel, confirms it in a banner, and adds the person to the list as Pending with their role and limit.
Every screen
The 5 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 bill-pay app’s Add user panel over Users and roles: legal name and email, a role list that explains each role, an optional admin-approval limit for roles that pay, then a pending row with resend and cancel.
The email is checked against the people who already have access
A malformed address, your own email, a current member’s email and an address with a pending invitation each get their own message under the field, so the same person can’t be invited twice or end up with two accounts.
Roles are picked from a list that describes them
Each option has one line of what the role allows, new roles carry a New badge, and the list ends with a link to compare roles. The chosen role’s description stays under the field, so the sender sees the access they are granting.
The role decides whether an approval limit applies
Admins, accountants and contributors can schedule payments, so choosing one reveals Payment approval: a switch and an amount that is disabled until the switch is on. Approvers and viewers can’t pay, and the section says so instead of showing a setting that does nothing.
The invitation becomes a pending member
After sending, a banner names the person, the count above the list gains a pending invitation, and the new row shows Pending, the role, the approval limit and the date, with a menu to resend, copy the link or cancel (with Undo in the toast).
Step by step
- 01
Users and roles
The Users and roles page, where the Add user button starts the invite. The current members are a wireframe sketch where your own team list goes.
The invite starts where access is managed, next to the people who already have it, so the new person lands in the same list once invited.
- 02
User details
Enter the person’s first and last name and their email address.
A payments product records who scheduled and approved each payment, so it asks for the legal name up front. The email is the address the invitation goes to and is checked when the invite is sent.
- 03
Choose a role
Pick Admin, Accountant, Contributor, Approver or Viewer from a list that describes each one.
The role is the decision that matters most, so every option says what it allows, and the list links to a comparison for anyone unsure.
- 04
Payment approval
For roles that can pay, choose whether their payments over an amount need an admin’s approval, then send the invite.
A threshold per person is the simplest control over spending. It sits right under the role it applies to and only appears for roles that can schedule payments.
- 05
Invitation sent
A banner confirms the invitation and the person is listed as Pending with their role, limit and the date it was sent.
An invitation 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 cancelled.
Built with shadcn/ui and Radix UI
- Button
- Input
- Input Group
- Field
- Dropdown Menu
- Switch
- Separator
- Avatar
- Badge
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Melio is a trademark of its owner; this page is not affiliated with or endorsed by Melio.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-melio-inviting-a-user. The shadcn CLI copies the flow into components/flows/melio-inviting-a-user/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-melio-inviting-a-user) and React Aria (@shadcnpro/aria/flow-melio-inviting-a-user) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Melio's inviting teammates & friends flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Melio is a trademark of its owner, and this page is not affiliated with or endorsed by Melio.
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/melio-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 invitations, the role decides whether the approval section shows, and sending adds a pending row you can resend, copy or cancel. Nothing leaves the browser: sending waits a moment, and the copied link is a placeholder. In a real app, create the pending member with an expiring token on your API, email the link, and enforce the approval limit when payments are scheduled.
Button, Input, Input Group, Field, Dropdown Menu, Switch, Separator, Avatar, Badge 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 menu is hidden, and below `sm` the sketched icon rail is hidden and the logo moves into the top bar. The Add user panel takes the full width, the name fields stack, and the pending rows keep the name, badge and actions while the role and limit column is hidden.