Search

Search components and blocks

Sign in

Built from the Dialog and Switch components.

Invite Collaborators Dialog

Pro

An email chip input for inviting teammates: type-or-paste-and-Enter to add, a per-row role Select, and a Send button whose label pluralizes with the pending count before confirming and closing — the flow every team workspace or shared AI project needs.

pnpm dlx shadcn@latest add @ditherui/invite-collaborators-dialog

Props

Addvalidates the email, skips duplicates, appends with the default "Can edit" role—
Per-row role SelectViewer / Editor / Admin — reuses the Select component"editor"
Remove (X)drops that invite from the pending list—
Send N invitesActionSwapButton — label pluralizes with the count, confirms "Sent!", then closesdisabled when empty

Suggested components