> For the complete documentation index, see [llms.txt](https://docs.zingy.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/badged-text.md).

# Badged Text

{% hint style="info" %}
**Block Information**

Available in: Page Flow

Toolbox Category: Page Content

Block Type: [Output](/app-editor/page-flow/block-anatomy.md#output-block)

Output Type: [*text*](/app-editor/page-flow/references/value-types.md)
{% endhint %}

The **`Badged Text`** block is an [output block](/app-editor/page-flow/block-anatomy.md#output-block) that dynamically creates a [Badged Text element](/app-editor/page-editor/built-in-elements/badged-text.md) and outputs its content (of type [*text*](/app-editor/page-flow/references/value-types.md)) .&#x20;

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FVGZQSR7nUdXa1Ejxfe4a%2Fimage.png?alt=media&amp;token=1f0460ef-8641-4df9-9501-3eae85fd798e" alt="" width="539"><figcaption><p>Badged Text block</p></figcaption></figure></div>

It consists of the following (from left to right):

* *Badge Shape*: [Dropdown configuration setting](/app-editor/page-flow/block-anatomy.md#dropdown) with options for [Normal or a Pill shape](/app-editor/page-editor/built-in-elements/badged-text.md#badge-shape)
* *Badge Style*: [Dropdown configuration setting](/app-editor/page-flow/block-anatomy.md#dropdown) with pre-defined options of [background and text colors](/app-editor/page-editor/built-in-elements/badged-text.md#badge-style).
* *Text*: [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value containing the content inside the badge.

{% hint style="success" %}
You can attach the block to [Set Content](/app-editor/page-flow/toolbox-blocks/set-content.md) or [Set Content in Data Design](/app-editor/page-flow/toolbox-blocks/set-content-in-data-design.md) blocks to display the content on the page or form.
{% endhint %}

***

## Usage Example

An example of the usage for the Badged Text block is shown below:

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FsCfk1VOuLRKSTPe0Juam%2Fimage.png?alt=media&amp;token=c75da34b-1768-46e7-91fc-648f9ae7a761" alt=""><figcaption><p>Badged Text block usage example</p></figcaption></figure>

***

## See also

[Badged Text Element](/app-editor/page-editor/built-in-elements/badged-text.md)

[Page Flow Set Content block](/app-editor/page-flow/toolbox-blocks/set-content.md)


---

# 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://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/badged-text.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.
