Atelier UI

Search components…

Search components…

Share Dialog

A modal share dialog with copy link, email invite chips, access level and per-person roles.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ShareDialogProps

Also accepts all props of Omit<React.ComponentProps<"dialog">, "open" | "title">

PropTypeDefaultDescription
open* requiredboolean——
onOpenChange* required(open: boolean) => void——
resourceName* requiredstring—Name of the thing being shared, shown in the title
link* requiredstring——
peopleSharePerson[]—People who already have access (initial value)
defaultAccessShareAccess"restricted"—
onInvite(emails: string[], role: ShareRole) => void——
onAccessChange(access: ShareAccess) => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/share-dialog.json

More like this