Commerce
Checkout product summary
CheckoutProductSummary — exported from the library at `src/components/checkout/CheckoutProductSummary.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 product summary
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 |
|---|---|---|---|
item* | CheckoutItem | — | Undocumented — add TSDoc to the prop in the library. |
context | "checkout" | "join" | "checkout" | When "join", uses "Joining info" label and shows "Free" / dashes for $0 items |
platformFeeRate | number | 0.025 | Which fee breakdown the totals are built from. The app hard-coded 2.5% and 10% GST; both are props so a story can show a different market without a fork, and so nothing here depends on live pricing config. |
gstRate | number | 0.1 | Undocumented — add TSDoc to the prop in the library. |
initialExpanded | boolean | false | Breakdown open on first render. |
forceExpanded | boolean | — | Pins the breakdown open (`true`) or shut (`false`), overriding the internal toggle — so "collapsed" and "expanded" are each a static story rather than a click path. |
onExpandedChange | (expanded: boolean) => void | — | Fires whenever the buyer toggles the breakdown. |
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/CheckoutProductSummary.tsx- Portability
- Copies across unchanged — only the utils import path moves.
- Variants
type: product | spacecontext: checkout | join