> For the complete documentation index, see [llms.txt](https://cardstock-studio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cardstock-studio.gitbook.io/docs/design/templates-design-your-cards/components.md).

# Components

<mark style="color:$success;">**Components**</mark> add style and functions to <mark style="color:$success;">**Layers**</mark>. All Layers have a [*Transform*](/docs/design/templates-design-your-cards/components/transform.md) Component, which handles the size, position, angle, and pivot of the Layer.

The <mark style="color:$success;">**Main Component**</mark> defines what kind of Layer the Layer is — [Image](/docs/design/templates-design-your-cards/layers/image-layers.md), [Custom Shape](/docs/design/templates-design-your-cards/layers/shape-layers.md), [Text](/docs/design/templates-design-your-cards/layers/text-layer.md), etc. Other Components can be added, but not all Components can be added to all types of Layers.

***

## Adding a Component

When a Layer is selected, add a Component in the right panel.

<figure><picture><source srcset="/files/7yph2rqww4mRiNUyZ1Sk" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FRecup4X28zOO3z8FMyKR%2FScreenshot%202026-05-20%20at%2011.07.45%E2%80%AFPM.png?alt=media&amp;token=c053f706-ea1e-4dab-999d-dd9b0eb0481c" alt="" width="298"></picture><figcaption></figcaption></figure>

Only Components that are allowed to be added to the Layer will be displayed, and you can not have multiple instances of the same Component on one Layer.

***

## Copying Components

Right-click the "COMPONENTS" tab to *Copy All Settings*, or *Paste All Settings* if you already have settings copied.

<figure><picture><source srcset="/files/3TOxx9mxbRYR0iOkwfsa" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FGZzfpf1RwcJodFLTWFjk%2FScreenshot%202026-05-20%20at%2011.09.43%E2%80%AFPM.png?alt=media&amp;token=c1414993-adda-435f-8f55-4fb31238a849" alt="" width="307"></picture><figcaption></figcaption></figure>

Right-click an individual Component header to copy its settings, or paste settings from the same Component.

When a Component has been copied, a new "Paste Component as New" button will appear, allowing you to paste one of the copied Components as a new Component on this Layer.

<figure><picture><source srcset="/files/1p7HsVZ09jYdcAUoAKGX" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FCE9t0GKGYZec3Q9SLWYh%2FScreenshot%202026-05-20%20at%2011.11.59%E2%80%AFPM.png?alt=media&amp;token=bddcb455-06ea-47af-8a56-9e76fc0ae8f3" alt="" width="304"></picture><figcaption></figcaption></figure>

***

## Removing a Component

Right-click the header of the Compoment and choose "Delete".


---

# 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, and the optional `goal` query parameter:

```
GET https://cardstock-studio.gitbook.io/docs/design/templates-design-your-cards/components.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
