Inviting a usersimilar to
incident.io
The invite pattern for tools billed per seat, where most people only need to look and a few need to act. One compact dialog takes several people at once (picked from the connected chat directory or typed as addresses), a base role, and the paid seats each person gets, with viewer access as the free default. The seat counters include the people being invited, so the admin knows what the invitation costs before sending, and a seat the plan can no longer cover can’t be handed out. The invitees land in the users table straight away, marked as invited, with their seats already reserved. The settings around it (sidebar, page header, toolbar and the users already there) are a wireframe sketch where your own app goes.
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 from the Users settings page: pick colleagues from Slack or paste addresses, choose a base role and the paid seats they get, and watch them join the table as invited.
Directory first, email as a fallback
Typing a name suggests colleagues from the connected Slack workspace with their photo and job title; typing or pasting an address works for everyone else. Each person becomes a chip with its own remove button, and a clear button empties the field.
Wrong addresses never reach the server
A malformed address stays in the field as a red chip so the user sees which one to fix. Duplicates, people already in the workspace and people with a pending invitation are refused with a one-line reason under the field.
Seats are a choice, viewer is free
Responder and On-call are separate checkboxes with what each allows and how many of the plan’s seats are taken, counting the people in this invitation ("6 of 6 used, +2 from this invite"). A seat with too few left for everyone is disabled with "Only 2 left", and one that goes over after more people are added blocks Invite with a note pointing to Billing. Leaving both unticked invites people as viewers, and the footer says in words what will be used before Invite is pressed.
Invited people are real rows
The new rows appear in the users table at once with an "Invited" badge, the seats and role they will get, and a menu to resend, copy the invite link or revoke. The count under the table includes them.
Step by step
- 01
Users
The Users settings page, a wireframe sketch where your own app goes, with the "Invite user" button in its header.
Inviting starts where access is managed, so the new people show up in the same table a moment later. The existing users are sketched rows: they are your app’s data, not part of the pattern.
- 02
Choose who to invite
Pick colleagues from Slack or type and paste addresses; each person becomes a chip. Choose their base role.
Most invitees are already in the company chat, so picking them by name avoids typos; pasted lists cover everyone else in one go.
- 03
Give them seats
Tick Responder, On-call, both or neither. Counters include this invitation, and the footer says how many paid seats it uses.
Seats cost money and most people only need to read. Making the paid part an explicit, counted choice, and refusing seats the plan can’t cover, avoids surprise bills and over-provisioning.
- 04
Users invited
The invitees appear in the users table marked "Invited", with the seats and role they will get, and a toast confirms.
Seeing the rows confirms the invitations went out, shows the seats are reserved and gives the admin a place to follow up.
Built with shadcn/ui and Radix UI
- Button
- Checkbox
- Field
- Label
- Select
- Dropdown Menu
- Avatar
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. incident.io is a trademark of its owner; this page is not affiliated with or endorsed by incident.io.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-incident-io-inviting-a-user. The shadcn CLI copies the flow into components/flows/incident-io-inviting-a-user/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-incident-io-inviting-a-user) and React Aria (@shadcnpro/aria/flow-incident-io-inviting-a-user) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of incident.io's inviting teammates & friends flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. incident.io is a trademark of its owner, and this page is not affiliated with or endorsed by incident.io.
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/incident-io-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.
Nothing is sent: the users and the Slack directory are local lists, Invite waits a moment and adds invited rows, and resend, copy link and revoke only update the list and show a toast. In a real app, search your chat or identity directory for suggestions, post the addresses, role and seats to your invitations endpoint, email each person a signed link, and load users and pending invitations from your API.
Button, Checkbox, Field, Label, Select, Dropdown Menu, 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. Below the large breakpoint the sketched settings sidebar is hidden and the page takes the full width; the users table scrolls sideways in its container. The dialog fills the width with a small margin, and the footer summary is hidden on the smallest screens so Cancel and Invite keep their room.