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

Defaults: BannerSection

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

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

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

BannerSection

The platform's Banner section: full-width announcement or promo strip.

BannerSection(props: ElementRenderProps<PlatformSectionSettings<'banner'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

Utoljára frissítve