---
agentTools:
  projectIndex: https://docs.xkit.co/llms.txt
---

# renderCatalogDefault

Renders the Catalog into the DOM

### Parameters

1. `elemId` = `"xkit-app"`
   The HTML ID of the element into which the catalog should be rendered.

### Returns

`void`

`renderCatalogDefault` is the most basic version of catalog rendering. It waits until the DOM is ready, finds the element into which it should be rendered, and then renders itself according to the configuration on the element itself.

This function is how the standalone Xkit Catalog works, and is recommended if you're rendering into a static HTML page (as opposed to a Javascript Single-Page app).

[block:code]
{
  "codes": [
    {
      "code": "<html>\n  <head>\n\t\t<script src=\"https://<your-slug>.xkit.co/xkit-catalog.js\"></script>\n\t\t<script>xkit.ready(function () { xkit.renderCatalogDefault() })</script>\n  </head>\n  <body>\n    <div id=\"xkit-app\"></div>\n  </body>\n</html>",
      "language": "html"
    }
  ]
}
[/block]

[block:api-header]
{
  "title": "Configuration"
}
[/block]

Configuring `renderCatalogDefault` is done by adding `data-` attributes to the `#xkit-app` HTML tag (or other ID you specified) you used to render the catalog.

For example, if you wanted to configure the `token` property, you would add a `data-token` attribute:

[block:code]
{
  "codes": [
    {
      "code": "<div id=\"xkit-app\" data-token=\"some-user-token\"></div>",
      "language": "html"
    }
  ]
}
[/block]

See [Configuring xkit-catalog.js](https://docs.xkit.co/reference/configuring-xkit-catalogjs) for a full list of available configurations