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

Constants

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

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

accountRegions

The account template's regions, where merchants place blocks.

const accountRegions: {
    readonly head: 'head';
    readonly main: 'main';
    readonly orders: 'orders';
}

Example

import { Slot } from '@poltura/theme-sdk/elements';
import { accountRegions } from '@poltura/theme-sdk/customer';

export function AccountOrders() {
  return <Slot name={accountRegions.orders} />;
}

authRegions

The sign-in and sign-up pages' regions, where merchants place blocks.

const authRegions: {
    readonly head: 'head';
    readonly aside: 'aside';
}

Example

import { Slot } from '@poltura/theme-sdk/elements';
import { authRegions } from '@poltura/theme-sdk/customer';

export function AuthAside() {
  return <Slot name={authRegions.aside} className='flex flex-col gap-4' />;
}
Last updated