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

Parts

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

On this page
import { … } from '@poltura/theme-sdk/slots';

AppSlot

An anchor that draws the theme's content, then every active app's widget for the slot; nothing when both are empty.

AppSlot(props: AppSlotProps): ReactElement | null

Props: AppSlotProps

Example

import { AppSlot } from '@poltura/theme-sdk/slots';

export function FooterHelp() {
  return <AppSlot name='footer.help' className='mt-4' />;
}

AppZone

The app blocks the merchant placed in the header or footer zone, in their order.

AppZone(props: AppZoneProps): ReactNode

Props: AppZoneProps

Example

import { AppZone } from '@poltura/theme-sdk/slots';

export function FooterApps() {
  return <AppZone zone='footer' />;
}
Last updated