Commerce
Checkout buyer details
CheckoutBuyerDetails — exported from the library at `src/components/checkout/CheckoutBuyerDetails.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 buyer details
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 |
|---|---|---|---|
accountEmail | string | — | The verified account email. Pass it only once verified (same rule as `CheckoutPaymentCard`'s `email`). While it is set, the Email field mirrors it and is disabled — the Account card above is the one place that address is collected, so letting it be retyped here would only invite a mismatch. |
initialEmail | string | "" | Values on first render. Let a story show a filled or long-content form. |
initialFirstName | string | "" | Undocumented — add TSDoc to the prop in the library. |
initialLastName | string | "" | Undocumented — add TSDoc to the prop in the library. |
initialMobile | string | "" | Undocumented — add TSDoc to the prop in the library. |
onEmailChange | (value: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
onFirstNameChange | (value: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
onLastNameChange | (value: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
onMobileChange | (value: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
errors | CheckoutBuyerDetailsErrors | {} | Per-field messages. Caller-owned — nothing here validates. |
initialCountryIso | string | "AU" | ISO of the country the phone field opens on. Replaces the app's IP lookup: the caller decides, the component never guesses. |
idPrefix | string | "checkout" | Prefix for the field `id`s, so two of these on one docs page do not share DOM ids and steal each other's label clicks. |
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/CheckoutBuyerDetails.tsx- Portability
- Copies across unchanged — only the utils import path moves.