Developers
Start building
Themes/Theme SDK/Modules/slots/Types

Types

The types of @poltura/theme-sdk/slots.

On this page
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').AppSlotName

The 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.

namerequiredAppSlotName

The slot to open.

childrenReactNode

The theme's own content, drawn before the apps' widgets.

fallbackReactNode

Drawn instead of `children` when the theme passes none.

classNamestring

Classes 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.

zonerequiredAppZoneName

The 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'
Last updated