Commerce
Checkout save info
CheckoutSaveInfo — exported from the library at `src/components/checkout/CheckoutSaveInfo.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 save info
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 |
|---|---|---|---|
checked* | boolean | — | Undocumented — add TSDoc to the prop in the library. |
onCheckedChange* | (next: boolean) => void | — | Undocumented — add TSDoc to the prop in the library. |
label | string | "Save this card for future purchases" | Deliberately not "Save my information for faster checkout" — that is the wording on the payment provider's own opt-in inside its element, and two identically-labelled controls doing different things read as a duplicate. |
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/CheckoutSaveInfo.tsx- Portability
- Copies across unchanged — only the utils import path moves.