# Heading

## Overview

The Heading field supports formatting and different types of headings.

{% hint style="info" %}
The heading doesn't save its state across all app pages and needs to be copied or put in the header component.
{% endhint %}

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

### Properties

| Name   | Type     | Description    |
| ------ | -------- | -------------- |
| `name` | `string` | Component name |

### Methods

<table><thead><tr><th width="101.875">Name</th><th width="137.234375">Parameters</th><th width="106.296875">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setText</code></td><td><code>text: string</code></td><td><code>void</code></td><td>Set component text setting</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="159.7421875">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td></tr></tbody></table>


---

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