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

Defaults: PageBodySection to PageHeroSection

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

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

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

PageBodySection

The platform's Body section: main page copy.

PageBodySection(props: ElementRenderProps<PlatformSectionSettings<'page-body'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

PageHeroSection

The platform's Hero section: page hero: the page title and whatever you add under it.

PageHeroSection(props: ElementRenderProps<PlatformSectionSettings<'page-hero'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

Utoljára frissítve