# Component Templates

{% embed url="<https://youtu.be/Sn0YICgtS60>" %}

### Adding component templates

Many components have a set of templates to choose from. Follow the steps below to select a template.

1. Open the **jig** file where you want to add a component. Components normally are added under a `children` node in the YAML. Locate the correct node position in the YAML editor and press the **ctrl+space** keys. The Jigx IntelliSense popup listing the available components opens.

<figure><img src="/files/2b2UmvMenEMGfeORTavk" alt="Component template option"><figcaption><p>Component template option</p></figcaption></figure>

1. Scroll to the bottom and select **Use template**. The templates gallery opens providing the templates for various components. Use the `Search` and `category` fields to find the template you want to use or browse the gallery by scrolling through the options.
2. Once you have chosen a template, hover over the template and click the blue **insert** button.
3. The selected template YAML will be inserted into your jig file.
4. Add any customization to the code if required.
5. Ensure your jig is referenced to the **index.jigx** file.
6. Publish your solution and view the jig in the app.

#### See Also

* [Jig Templates](/building-apps-with-jigx/ui/jigs-_screens_/jig-templates.md)


---

# Agent Instructions: 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.jigx.com/building-apps-with-jigx/ui/components-_controls_/component-templates.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.
