Skip to content

Application shell

Layer share popover

A two-layer sharing popover for a page or channel that combines access control, link copying, and member or email invites.
Available
Ports as-is

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Layer share popover

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
pageIdstring—Undocumented — add TSDoc to the prop in the library.
onOpenSettings() => void—Undocumented — add TSDoc to the prop in the library.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/layout/LayerSharePopover.tsx
Portability
Copies across unchanged — only the utils import path moves.
Variants
type: member | email
Notes
Attach to a Share button on pages or channels so people can set who can access the layer, copy its link, or open a second layer to invite specific members and emails. Access changes write directly to the page's permission or the channel's visibility, so pass a pageId or rely on the current channel route for the popover to resolve the right target.