> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/reference/working-with-components/tags.md).

# Tags

## Overview

A list of color-coded labels. The component supports wrapping, several alignment options, and custom colors, as well as consistent color assignment ensuring that each distinct label is associated with a unique color.

<figure><img src="/files/Xfhr6CneIYWxLpfprmpX" alt=""><figcaption></figcaption></figure>

### Properties

<table><thead><tr><th width="109.65625">Name</th><th width="100.83203125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>string</code></td><td>Component name</td></tr></tbody></table>

### Methods

<table><thead><tr><th width="96.64453125">Name</th><th width="242.515625">Parameters</th><th width="101.60546875">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setValue</code></td><td><code>options: string | string[] | { value: any; title: string;</code> <br><code>color: string }[]</code></td><td><code>void</code></td><td>Set component value</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="141.6953125">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td></tr><tr><td><strong>On Tag Click</strong></td><td>Triggered when a tag is clicked</td></tr></tbody></table>


---

# 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.uibakery.io/reference/working-with-components/tags.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.
