Skip to main content
FlowsInviting Teammates & FriendsInviting a friend similar to Discord
shadcn/ui Flows

Inviting a friendsimilar toDiscord

A consumer invite that skips the email form entirely. The people you want are already your friends, so the dialog lists them with a search box and an Invite button each, and the server link sits underneath for everyone else. Closing the dialog drops you back in the server, where the friend who accepted is announced in the channel and the ones still deciding wait in the member list with resend and revoke.

Install flow

Step 1 of 4Your new server

Every screen

The 4 steps in order. Pick one to open it in the preview above.

01Your new serverThe server’s #general channel with a getting-started checklist; "Invite your friends" is the first task.
02Invite friendsSearch the friends list and invite people one by one, or copy the server’s invite link.
03Invite link settingsChoose how long the link works and how many times it can be used, optionally make membership temporary, and generate a new link.
04A friend joinsBack in #general: the invite task is ticked, the friend who accepted is welcomed with a Wave button, and the other invite waits in the member list.

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

Bring friends into a community server: a searchable friends list with one-tap invites, a copyable invite link with expiry and use limits, and the friend arriving in #general with a wave.

Invite people you already know, one tap each

Inside a social product the invitee is rarely a stranger with an email address. The dialog lists your friends with photos and presence, a search box narrows the list as you type, and each row has its own Invite button. No form, no submit: the row turns into "Sent" a moment later.

Rows say where each friend stands

A friend is in one of three states: not invited (Invite button), invited (a check and "Sent") or already a member ("Member", no button). Duplicates and existing members can’t be invited twice because the action simply isn’t there.

A link for everyone else, with its limits in plain words

Under the list sits the server’s invite link with a Copy button and one line that says how long it lasts ("expires in 7 days"). "Edit invite link" opens the settings: expiry, a maximum number of uses and temporary membership. Saving generates a new link and rewrites that line.

The outcome shows up where the user already is

Back in the server, the "Invite your friends" task is ticked, the friend who accepted is welcomed in #general with a Wave button and appears in the member list, and the friends still deciding wait under Invited. Pending invites can be resent, their link copied or revoked from a menu, and the count follows.

Step by step

  1. 01

    Your new server

    The server’s #general channel with a getting-started checklist; "Invite your friends" is the first task.

    Inviting is the task that makes a new space useful, so it leads the checklist and is also one click away in the empty member list. The rest of the server is a wireframe sketch where your own app goes.

  2. 02

    Invite friends

    Search the friends list and invite people one by one, or copy the server’s invite link.

    Direct invites to known friends convert best, so the list comes first. The link covers everyone who isn’t a friend yet, and its expiry is stated right under it.

  3. 03

    Invite link settingsOptional

    Choose how long the link works and how many times it can be used, optionally make membership temporary, and generate a new link.

    A shared link travels further than the people it was meant for. Expiry and a use limit cap that, and a new link retires the old one without touching invites already sent.

  4. 04

    A friend joins

    Back in #general: the invite task is ticked, the friend who accepted is welcomed with a Wave button, and the other invite waits in the member list.

    The result lands where the user already is. Waving gives a first message to send, and pending invites stay visible with resend and revoke instead of disappearing.

Built with shadcn/ui and Radix UI

  • Button
  • Input Group
  • Select
  • Switch
  • Field
  • Dropdown Menu
  • Sonner

This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Discord is a trademark of its owner; this page is not affiliated with or endorsed by Discord.

Frequently asked questions

Installing, adapting and theming this flow for Radix UI.