Skip to content

Commerce

Transaction sidebar cards

A set of four cards for the sidebar of a transaction detail page: transaction info and payment method, buyer contact details, acquisition source, and a standalone payment-method card.
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.

Transaction sidebar cards

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
transactionNumber*string—Undocumented — add TSDoc to the prop in the library.
date*Date—Pass a fixed date in stories — the card never reads the clock itself.
status*TransactionStatus—Undocumented — add TSDoc to the prop in the library.
paymentMethod*TransactionPaymentMethod—Undocumented — add TSDoc to the prop in the library.
onCopyTransactionId(transactionNumber: string) => void—The copy button beside the transaction ID was pressed. Omit it and the button is not rendered at all.

Reference

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

Source
src/components/transactions/TransactionSidebarCards.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
Use these together to fill the right-hand column of a transaction view; the contact card's profile header and each field's copy button only render when their respective callback (onContactClick/contactHref, onCopyField, onCopyTransactionId) is supplied. Note the labels run the responsive scale in reverse, appearing larger on mobile since the sidebar becomes the main column below the md breakpoint.