> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/slab/content/blocks/navigation/tags.md).

# Tags

## Overview

A block that lists and styles tags for the nearest context (article, product, or collection). It collects tags from closest.article, closest.product, or closest.collection, then renders each as plain text or as a styled badge depending on the display\_type setting.

## Block limitations

This is a private block that can only be used within specific sections or parent blocks. It automatically detects tags from the nearest article, product, or collection context and is not intended for standalone use.

## Common use cases

* Place inside article, product, or collection contexts where tags are present
* Prefer badge display type for emphasis; use text for subtle inline labels
* Tune alignment, font family, and font size to match surrounding typography
* Use padding settings sparingly to keep spacing consistent with adjacent blocks
* Enable overlay for absolute positioning when tags should appear over other content

## Block settings

| Setting                   | Description                                                               | Options                                                                                                                                                               |
| ------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enable horizontal padding | Adds horizontal padding around the tags                                   | Checkbox (default: false)                                                                                                                                             |
| Enable top padding        | Adds top padding around the tags                                          | Checkbox (default: false)                                                                                                                                             |
| Enable bottom padding     | Adds bottom padding around the tags                                       | Checkbox (default: false)                                                                                                                                             |
| Color scheme              | Controls the background and text colors for badges                        | Body (default), Neutral, Accent 1, Accent 2, Accent 3, Shade 1, Shade 2, Shade 3, Primary, Secondary, Tertiary, Blur, Transparent. Visible when display type is badge |
| Color border              | Controls the border color for badges                                      | Body (default), Subtle (default), Strong, Primary, Secondary, Tertiary, None. Visible when display type is badge                                                      |
| Enable color difference   | Applies mix-blend-difference for better visibility on varying backgrounds | Checkbox (default: false)                                                                                                                                             |
| Display type              | Controls how tags are displayed                                           | Text, Badge (default)                                                                                                                                                 |
| Font family               | Controls the font family                                                  | Standard (default), Heading, Subheading, Accent                                                                                                                       |
| Font size                 | Controls the font size                                                    | Smaller, Small, Default (default), Big, Bigger, Heading 1, Heading 2, Heading 3, Heading 4, Heading 5, Heading 6. Visible when display type is text                   |
| Horizontal alignment      | Controls horizontal alignment                                             | Left (default), Center, Right                                                                                                                                         |
| Vertical alignment        | Controls vertical alignment when overlay is enabled                       | Top (default), Bottom. Visible when enable overlay is true                                                                                                            |
| Enable overlay            | Switches to absolute positioning                                          | Checkbox (default: false)                                                                                                                                             |
| Visibility                | Controls when the block is visible                                        | All (default), Mobile only, Desktop only                                                                                                                              |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.brickspacelab.com/slab/content/blocks/navigation/tags.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
