Adding a teamsimilar to
incident.io
A team-creation pattern for admin settings. "Add team" opens a side sheet over the Teams list with one required field, a name. Members come from a searchable picker that also takes an email address, so someone who is not in the workspace yet can be invited in the same move; each member then gets a role in a compact list under the picker. Rarely needed fields (external ID, aliases, escalation paths, Slack channel) sit behind an "Advanced fields" disclosure. Create adds the team to the table with its lead, member avatars and pending invites. Everything around the sheet (the settings sidebar, page header, setup banner and the teams that already exist) is a wireframe sketch where your own app goes.
Every screen
The 6 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
Create a team from a settings page: name it, pick members or invite them by email, give each one a role, link a Slack channel, and the new team lands in the list with its lead and members.
Only the name is required
The sheet asks for a name and nothing else, so a team can exist in seconds. Members are marked optional and the advanced fields are folded away, which keeps the common case short while leaving room for teams synced from other tools.
One picker for people and invitations
The members picker searches names and emails across the workspace. When the query is a full email that matches nobody, the first option becomes "Invite …", and choosing it adds a pending person to the team and the workspace at once. Malformed addresses get a hint instead of an option, and people already picked show a check and toggle off.
Roles set inline, with a sensible default
Picked people appear as rows with a role select (Team lead or Member) and a remove button. The first person added becomes the lead, everyone after them a member, so most teams need no extra clicks. Pending invitees are marked "Invite pending" so nobody mistakes them for active users.
The result is visible straight away
Create closes the sheet and the new team is added under the existing ones, highlighted with a New badge, its lead, an avatar stack of members and the linked Slack channel. A toast confirms how many members were added and how many invitations went out.
Step by step
- 01
Teams
The Teams settings page, a wireframe sketch where your own app goes, with the "Add team" button in its header.
Team creation starts where admins look after teams, so the new team lands in the same table. The existing teams are sketched rows: they are your app’s data, not part of the pattern.
- 02
Name the team
The Add team sheet opens over the list; type the team’s name.
A name is the one thing a team needs, so it is the only required field and is focused when the sheet opens.
- 03
Pick membersOptional
Search people in the workspace and tick them, or type an email to invite someone new.
One searchable list covers both colleagues and newcomers, so adding someone who hasn’t joined yet doesn’t send the admin to another page.
- 04
Set rolesOptional
Each member appears as a row with a role select; make one of them the team lead.
Roles decide who can edit the team and its schedules. Inline selects keep the decision next to the person, and the first member defaults to lead.
- 05
Advanced fieldsOptional
Optionally set an external ID and aliases, see how escalation paths are linked, and pick a Slack channel.
These fields matter for teams synced from other tools and for routing, but most teams never need them, so they stay folded until asked for.
- 06
Team created
The new team appears in the table under the existing ones, with a New badge, its lead, member avatars and Slack channel.
Showing the team in place, with its people, confirms the result without a separate success page; the toast adds how many invitations were sent.
Built with shadcn/ui and Radix UI
- Button
- Input
- Field
- Select
- Badge
- 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-adding-a-team. The shadcn CLI copies the flow into components/flows/incident-io-adding-a-team/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-incident-io-adding-a-team) and React Aria (@shadcnpro/aria/flow-incident-io-adding-a-team) 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. Pick members, Set roles and Advanced fields are optional and can be left out on their 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/incident-io-adding-a-team.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 preview keeps teams, members and invitations in memory: validation, the picker, roles and the new row are real, but nothing is saved and no invitation email is sent. In a real app, load people and teams from your API, create the team and its pending invitations in one request on Create, and send the emails from the server.
Button, Input, Field, Select, Badge, 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, the sheet takes the full width, and the table drops the Team lead and Slack channel columns, keeping name, members and the view button.