Commerce
Checkout link preview card
CheckoutLinkPreviewCard — exported from the library at `src/components/checkout-links/CheckoutLinkPreviewCard.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 preview card
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 |
|---|---|---|---|
link* | CheckoutLink | — | Undocumented — add TSDoc to the prop in the library. |
shareUrl* | string | — | The public URL, shown in the pill under the price. |
onCopyUrl | () => void | — | Undocumented — add TSDoc to the prop in the library. |
onPreview | () => void | — | Undocumented — add TSDoc to the prop in the library. |
onEdit | () => void | — | Undocumented — add TSDoc to the prop in the library. |
onShare | () => void | — | Undocumented — add TSDoc to the prop in the library. |
onDelete | () => void | — | Undocumented — add TSDoc to the prop in the library. |
preview | ReactNode | — | What the device frame renders. Pass the checkout page itself — the frame scales it down from a true 1280×800 / 390×844 viewport. |
previewIframeSrc | string | — | URL loaded into an iframe inside the frame instead of `preview`. The app pointed this at its live `/checkout/preview-draft` route; leave it undefined in a story, since loading it would be an external request. |
previewHeight | number | 280 | Height of the device-frame column, in px. |
untitledLabel | string | "Untitled link" | Shown when the link has no name. |
currencySymbol | string | "$" | Prefix on the price. BTS prices in AUD, hence the bare `$`. |
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/CheckoutLinkPreviewCard.tsx- Portability
- Copies across unchanged — only the utils import path moves.