Commerce
Checkout link detail header
CheckoutLinkDetailHeader — exported from the library at `src/components/checkout-links/CheckoutLinkDetailHeader.tsx`. Awaiting a written description.
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.
Checkout link detail header
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.
| Prop | Type | Default | Description |
|---|---|---|---|
title* | string | — | Link name. Truncates inside the bar. |
onEdit* | () => void | — | Edit was chosen from the overflow menu. Desktop-only item — see `isMobile`. |
onDelete* | () => void | — | Delete was chosen from the overflow menu. |
onPreview | () => void | — | Preview was chosen. Omit and the Preview item is not rendered at all. |
onBack | () => void | — | Back was pressed. Replaces `navigate("/creator/apps/checkout-links?space=…")`. |
onCopyUrl | (url: string) => void | — | Copy URL was chosen. Receives `shareUrl`. |
shareUrl | string | DEFAULT_CHECKOUT_LINK_SHARE_URL | The URL handed to `onCopyUrl`. Replaces the `window.location.href` read. |
isMobile | boolean | false | Forces the mobile branch of the overflow menu. The app read this from `useIsMobile()`, which a story cannot drive; passing it explicitly makes **both** menus renderable. `true` drops the Edit item — editing a link is a desktop-only action. |
defaultMenuOpen | boolean | — | Uncontrolled seed for the overflow menu, so the open menu is a snapshot. |
menuOpen | boolean | — | Controlled overflow menu state. |
onMenuOpenChange | (open: boolean) => void | — | Undocumented — add TSDoc to the prop in the library. |
className | string | — | 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/checkout-links/CheckoutLinkDetailHeader.tsx- Portability
- Copies across unchanged — only the utils import path moves.