Invite Dialog with Copy Link

Invite User 4Pro

A user table with invite dialog featuring both email input with role selection and a shareable invite link with copy-to-clipboard functionality.

Shadcn UI Invite User Block

InviteUser4 displays a user table with an invite dialog that offers two methods: email invitation and shareable link. The dialog shows an email input field with role selector at the top, and a copy-link card below with the invite URL and copy button. The table shows existing users with name, email, role, and status columns.

Light background with the dialog split into two sections. The email section uses standard input and select styling. The copy-link card has a muted background with the URL displayed in a read-only input and a copy button that shows a checkmark on success. The copy button transitions from copy icon to check icon after clicking.

This variant provides flexibility by offering both direct email invites and shareable links. The copy-to-clipboard functionality with visual feedback is a nice touch. Useful for teams where members might share invite links through other channels.

Dependencies

PackageType
lucide-reactNPM
reactNPM
button
@shadcn
Registry
dialog
@shadcn
Registry
input
@shadcn
Registry
label
@shadcn
Registry
select
@shadcn
Registry
table
@shadcn
Registry