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

Defaults: StepsSection to StoreFormSection

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

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

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

StepsSection

The platform's Steps section: numbered how-it-works list.

StepsSection(props: ElementRenderProps<PlatformSectionSettings<'steps'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

StoreFormSection

The platform's Form section: choose a form and show it on the page, in a popup or in a side panel.

StoreFormSection(props: ElementRenderProps<PlatformSectionSettings<'store-form'>>): ReactNode

Props: ElementRenderProps

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

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

See also: overrideSection

Utoljára frissítve