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

Defaults: SpacerSection to StatsSection

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

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

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

SpacerSection

The platform's Spacer section: vertical space, optionally with a divider.

SpacerSection(props: ElementRenderProps<PlatformSectionSettings<'spacer'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

StatsSection

The platform's Stats section: numbers that build trust.

StatsSection(props: ElementRenderProps<PlatformSectionSettings<'stats'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

Utoljára frissítve