> For the complete documentation index, see [llms.txt](https://docs.peakcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.peakcommerce.com/product/using-peakcommerce/templates/templates-overview.md).

# Working with Components

Components are the reusable building blocks of every PeakCommerce page. You assemble pages — storefronts, checkout, payment, and portal pages — from components rather than editing monolithic HTML templates. Browse and manage them in **Content → Component Library**.

## What defines a component

Each component in the library has:

* **Category** — how it's grouped (for example Storefront, Portal Widgets, Content, utility, or a custom category).
* **Contexts** — where it can be used (Storefront, Checkout, Customer Portal, Partner Portal, CSR Portal, Payment Pages, or all editors).
* **Source** — **System** (built-in) or **User** (created in your tenant).
* **Status** — whether it's active and available to use.

## Using components

When you build or edit a [page](/product/journeys-and-pages/pages.md), you place components onto it; the page's context determines which components are available. System components give you a ready-made starting set, and user components let you standardize your own building blocks across pages.

See [Creating a Component](/product/using-peakcommerce/templates/creating-a-component.md) to add your own.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.peakcommerce.com/product/using-peakcommerce/templates/templates-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
