Developers
Start building
Themes/Theme SDK/Modules/listing/Constants

Constants

The constants of @poltura/theme-sdk/listing.

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

collectionRegions

The collection template's regions, where merchants place the listing's blocks.

const collectionRegions: {
    readonly head: 'head';
    readonly aside: 'aside';
    readonly main: 'main';
}

Example

import { Slot } from '@poltura/theme-sdk/elements';
import { collectionRegions } from '@poltura/theme-sdk/listing';

export function ListingAside() {
  return <Slot name={collectionRegions.aside} />;
}
Last updated