Developers
Start building
Themes/Theme SDK/Modules/sections/Defaults: CopySection to CtaStripSection

Defaults: CopySection to CtaStripSection

The defaults of @poltura/theme-sdk/sections, CopySection to CtaStripSection.

On this page
import { … } from '@poltura/theme-sdk/sections';

CopySection

The platform's Copy block section: centered brand message.

CopySection(props: ElementRenderProps<PlatformSectionSettings<'copy'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

CtaStripSection

The platform's Call to action section: heading, body, and button.

CtaStripSection(props: ElementRenderProps<PlatformSectionSettings<'cta-strip'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

Last updated