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

Defaults: CustomSection to FaqSection

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

The defaults of @poltura/theme-sdk/sections, CustomSection to FaqSection.

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

CustomSection

The platform's Custom section section: a blank canvas: build any layout from elements.

CustomSection(props: ElementRenderProps<PlatformSectionSettings<'custom-section'>>): ReactNode

Props: ElementRenderProps

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

export const framed = overrideSection('custom-section', (props) => (
  <div className="theme-frame">
    <CustomSection {...props} />
  </div>
));

See also: overrideSection

FaqSection

The platform's FAQ section: expandable question and answer list.

FaqSection(props: ElementRenderProps<PlatformSectionSettings<'faq'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

Utoljára frissítve