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'>>): ReactNodeProps: 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'>>): ReactNodeProps: 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