Fejlesztőknek
Kezdj bele
Témák/Theme SDK/Modules/sections/Defaults: RelatedProductsSection to RichTextSection

Defaults: RelatedProductsSection to RichTextSection

Ez az oldal még csak angolul érhető el.

The defaults of @poltura/theme-sdk/sections, RelatedProductsSection to RichTextSection.

Ezen az oldalon
import { … } from '@poltura/theme-sdk/sections';

RelatedProductsSection

The platform's Related products section: recommendations under the PDP.

RelatedProductsSection(props: ElementRenderProps<PlatformSectionSettings<'related-products'>>): ReactNode

Props: ElementRenderProps

import { overrideSection } from '@poltura/theme-sdk/elements';
import { RelatedProductsSection } from '@poltura/theme-sdk/sections';

export const framed = overrideSection('related-products', (props) => (
  <div className="theme-frame">
    <RelatedProductsSection {...props} />
  </div>
));

See also: overrideSection

RichTextSection

The platform's Rich text section: heading + body copy block.

RichTextSection(props: ElementRenderProps<PlatformSectionSettings<'rich-text'>>): ReactNode

Props: ElementRenderProps

import { overrideSection } from '@poltura/theme-sdk/elements';
import { RichTextSection } from '@poltura/theme-sdk/sections';

export const framed = overrideSection('rich-text', (props) => (
  <div className="theme-frame">
    <RichTextSection {...props} />
  </div>
));

See also: overrideSection

Utoljára frissítve