Fejlesztőknek
Kezdj bele
Témák/Theme SDK/Modules/listing/Constants

Constants

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

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

Ezen az oldalon
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} />;
}
Utoljára frissítve