Pickers
Share Popover
Share panel: invite by email, people with access, general access and copy link. Put it in a Popover.
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/SharePopoverExample.tsx
Examples
In a popover
API Reference
SharePopover
| Prop | Type | Default |
|---|---|---|
people | { name: string; email?: string; you?: boolean; access?: string; avatar?: string }[] | [] |
generalAccess | { label: ReactNode; icon?: IconName } | { label: "Only people invited" } |
banner | ReactNode | |
onInvite | (emails: string) => void | |
onCopyLink | () => void | |
publishContent | ReactNode | |
helpHref | string | |
onPersonAccess | (person: SharePerson) => void | |
onGeneralAccess | () => void | |
onAdvanced | () => void | |
autoFocus | boolean | false |
Accessibility
- Share / Publish tabs follow the WAI-ARIA tabs pattern.
- The invite field is labelled "Invite people by email"; Enter submits it.
- Access buttons name the person they change ("Can edit, change access for Alan Turing").
- The help link says it opens in a new tab; optional controls render only when you pass their handler.
Usage
- Use behind a "Share" button for documents and projects.
- Wire
onPersonAccess/onGeneralAccessto a Menu or Select that changes the access level.
© 2026 Motion. Internal documentation.