Types
Ez az oldal még csak angolul érhető el.
The types of @poltura/theme-sdk/slots.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/slots';AppSlotName
A named anchor where installed apps append their widgets, such as footer.help.
type AppSlotName = import('@poltura/platform/app-slot-names').AppSlotNameThe host draws home.above, home.below, product.above and product.below around the page on every theme; a theme places the others.
AppSlotProps
Props of AppSlot.
namerequiredAppSlotNameThe slot to open.
childrenReactNodeThe theme's own content, drawn before the apps' widgets.
fallbackReactNodeDrawn instead of `children` when the theme passes none.
classNamestringClasses added to the slot's box.
AppZoneName
A page-wide band apps fill with blocks the merchant places: above the header or below the footer.
type AppZoneName = 'header' | 'footer'AppZoneProps
Props of AppZone.
zonerequiredAppZoneNameThe zone to draw.
HostSlotName
A widget the host draws and a theme can place but never replace, such as the payment methods.
type HostSlotName = 'payment-methods' | 'payment-button' | 'express-checkout' | 'wallet-buttons' | 'gateway-callback' | 'captcha'