Import
Return Value
| Property | Type | Description |
|---|---|---|
storeId | string | undefined | Unique identifier for the store in Ollie Shop’s database |
logo | string | undefined | URL to the store’s logo image |
versionId | string | undefined | Version identifier for the current store configuration |
platform | string | Name of the e-commerce platform (e.g., "vtex", "shopify") |
platformStoreId | string | Store ID from the underlying platform (e.g., VTEX account name) |
theme | Record<string, string> | undefined | Theme object with style tokens like colors and fonts |
props | Record<string, unknown> | undefined | Custom configuration properties defined in the Admin |
theme
Thetheme object contains CSS custom properties (tokens) that define your store’s visual identity. These values are configured in the Theme settings in the Admin.
props
Theprops object contains custom configuration values that you define in the Admin under your Version settings. You can create any custom properties you need for your store.
Custom props are defined in the Admin under Version > Props. You can add any JSON configuration that your custom components need.
Usage
Example
Display the store logo in a custom header component with platform-specific styling.- index.tsx
- styles.module.css