Share and invite
A share dialog body with a copyable invite link, a multi-select of teammates, a permission picker, and the list of people with access.
bunx --bun @getweini/cli@latest add alert avatar badge button card copy-button input input-group multi-select selectCustomize
- Pass the link in `link`, the people who can be invited in `candidates`, and the current collaborators in `members`. The block emits `invite` with the chosen ids and permission. Set `loading` while it sends, `sent` on success, and `error` with a message on failure.
- CopyButton sits in the link field’s end slot as an icon action. It swaps to a check, announces “copied” or “failed” politely, and falls back to a hidden textarea where the clipboard API is unavailable. Selecting the field highlights the whole link for manual copying.
- MultiSelect shows two chips and a “+N” summary. Give each option `label` and `text-value` so chips and type-ahead use the name even though the row also shows an email. The send button counts the invitees.
- The card is a plain body: place it inside Dialog or Popover content to open it from a Share button. All text, including the pluralized button label and the MultiSelect messages, lives in `copy`.