Skip to content

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.

PropTypeDefaultDescription
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.
spaceNamestring"Your space"Byline shown under the title. The app read the active space from its space context; the preview is handed the name instead.
spaceIconSrcstringPLACEHOLDER_SPACE_ICONSpace avatar. Defaults to an inline data URI — never a network request.
emptyImageLabelstring"No image uploaded"Copy shown when no promo image has been uploaded yet.
untitledLabelstring"Untitled product"Fallback headline when the draft has no title yet.
currencySymbolstring"$"Undocumented — add TSDoc to the prop in the library.
ctaLabelstring—Overrides the derived button copy.
onCtaClick() => void—Undocumented — add TSDoc to the prop in the library.
stickybooleantrueThe panel is `sticky top-6` by default, as it is in the editor's right rail.
classNamestring—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.