PlutocracyMercury developer docs

MountElement

The element a bundle mounts into: , with these data attributes (all optional). A bundle mounts every on the page that has neither data-mounted nor data-manual.

Type: object

FieldTypeDescription
tag"mercury-kit"
datasetobject
Fields
FieldTypeDescription
collection optionalstring

Collection handle, or "search". Defaults to the /collections/ URL.

search optionalstring

Search term (search template).

api optionalstring

API base URL override.

bypassToken optionalstring
currency optionalstring
urlSync optionalstring

"false" to keep filters/sort/page out of the URL.

measure optionalstring

"container" to size breakpoints by the element instead of the window.

mounted optionalstring

Set by the bundle once mounted.

manual optionalstring

Present: the page mounts it itself.

Example (illustrative)
{
  "tag": "mercury-kit",
  "dataset": {
    "collection": "string",
    "search": "linen",
    "api": "string",
    "bypassToken": "<token>",
    "currency": "AUD",
    "urlSync": "https://cdn.shopify.com/s/files/1/0000/0001/files/linen-shirt.jpg",
    "measure": "string",
    "mounted": "string",
    "manual": "string"
  }
}

Declared in api-types/src/kit-contract/v1/theme.ts.