Defaults: CustomSection to FaqSection
The defaults of @poltura/theme-sdk/sections, CustomSection to FaqSection.
On this page
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'>>): ReactNodeProps: 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'>>): ReactNodeProps: 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