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

Defaults: ImageWithTextSection to LogoListSection

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

The defaults of @poltura/theme-sdk/sections, ImageWithTextSection to LogoListSection.

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

ImageWithTextSection

The platform's Image with text section: image beside copy and a call to action.

ImageWithTextSection(props: ElementRenderProps<PlatformSectionSettings<'image-with-text'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

LogoListSection

The platform's Logo list section: partner or payment logos.

LogoListSection(props: ElementRenderProps<PlatformSectionSettings<'logo-list'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

Utoljára frissítve