Skip to content
caliper ui pro docs

Share panel

A panel to invite people, set access and copy a link.

Pro

Share “Q4 launch plan”

People with access

  • Mara Chen

    mara@northwind.co

    Owner
  • Maya Chen

    maya@northwind.co

  • Dev Patel

    dev@northwind.co

General access

Only the people above can open this.

When to use

  • Sharing a document or project.

When not to use

  • Everything is public.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/share-panel

Adds its 13 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

SharePanel

11 props
PropTypeDefault
titlestring"Share"
people *readonly SharePerson[]—
access *ShareAccess—
linkRoleShareRole"viewer"
link *string—
onInvite *(email: string, role: ShareRole) => ShareResult | Promise<ShareResult>—
onRoleChange *(id: string, role: ShareRole) => ShareResult | Promise<ShareResult>—
onRemove *(id: string) => ShareResult | Promise<ShareResult>—
onAccessChange *(access: ShareAccess) => ShareResult | Promise<ShareResult>—
onLinkRoleChange((role: ShareRole) => ShareResult | Promise<ShareResult>)—
classNamestring—

Keyboard

  • Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It exposes group and status semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/share-panel.md

The index of every part is at /llms.txt.

More in Sharing