Skip to content

Store editor

About section

The rich-text description editor and its text styles.
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.

About section

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
about*string—The long description as an HTML string. Seeded into the editor once on mount — the field is a `contentEditable`, so React cannot re-render it without destroying the caret.
onAboutChange*(about: string) => void—Undocumented — add TSDoc to the prop in the library.
productType*ProductKindType—Chooses the placeholder. Uses the canonical `ProductKindType` union.
placeholdersPartial<Record<ProductKindType, string>>ABOUT_PLACEHOLDERSOverride the placeholder map. Defaults to `ABOUT_PLACEHOLDERS`.
placeholderFallbackstringABOUT_PLACEHOLDER_FALLBACKUndocumented — add TSDoc to the prop in the library.
initialShowPlaceholderboolean—Seeds the placeholder overlay. Defaults to "show it when `about` is empty" — the app hardcoded `true`, which floated the placeholder over existing copy.
initialActiveStyleTextStyle"h1"Seeds the highlighted block-style button. The app kept this in `useState` only, so no toolbar state other than H1 was reachable as a static story.
initialBoldbooleanfalseUndocumented — add TSDoc to the prop in the library.
initialItalicbooleanfalseUndocumented — add TSDoc to the prop in the library.
initialStrikethroughbooleanfalseUndocumented — add TSDoc to the prop in the library.
defaultLinkPopoverOpenbooleanfalseOpens the link popover on mount so it is a static story, not a click path.
initialLinkUrlstring""Seeds the link box so "half-typed a URL" is a static story.
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/sections/AboutSection.tsx
Portability
Needs its app dependencies replaced by props before it renders in isolation.