Store editor
Product editor preview
The live storefront preview beside the editor. Exports its price and CTA formatters.
Available
Needs mock props
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.
Product editor preview
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 |
|---|---|---|---|
title* | string | — | Undocumented — add TSDoc to the prop in the library. |
briefDescription* | string | — | Undocumented — add TSDoc to the prop in the library. |
promoImages* | string[] | — | Promo stills. The first one is the cover; the rest are ignored here. |
pricingModel* | PricingModel | — | Undocumented — add TSDoc to the prop in the library. |
price* | string | — | Bare amount as typed in the editor — no currency symbol. |
recurringInterval* | RecurringInterval | — | Undocumented — add TSDoc to the prop in the library. |
productType* | ProductKindType | — | Undocumented — add TSDoc to the prop in the library. |
spaceName | string | "Your space" | Byline shown under the title. The app read the active space from its space context; the preview is handed the name instead. |
spaceIconSrc | string | PLACEHOLDER_SPACE_ICON | Space avatar. Defaults to an inline data URI — never a network request. |
emptyImageLabel | string | "No image uploaded" | Copy shown when no promo image has been uploaded yet. |
untitledLabel | string | "Untitled product" | Fallback headline when the draft has no title yet. |
currencySymbol | string | "$" | Undocumented — add TSDoc to the prop in the library. |
ctaLabel | string | — | Overrides the derived button copy. |
onCtaClick | () => void | — | Undocumented — add TSDoc to the prop in the library. |
sticky | boolean | true | The panel is `sticky top-6` by default, as it is in the editor's right rail. |
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/store/editor/ProductEditorPreview.tsx- Portability
- Needs its app dependencies replaced by props before it renders in isolation.