> For the complete documentation index, see [llms.txt](https://design.mirakl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://design.mirakl.com/design/components/overlays/tooltip.md).

# Tooltip

An overlay for small amounts of data.

<figure><img src="https://1297765105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMoZPkWOmnKvoMWGW4aeM%2Fuploads%2F2nAzHqFnDPoyc3rNGNEu%2FTooltip%20Hero.png?alt=media&amp;token=0610842a-1eab-4aa8-9681-30d689bdd336" alt=""><figcaption></figcaption></figure>

## Overview <a href="#id-605b2c" id="id-605b2c"></a>

Tooltips add additional context to a button or other UI element.

<figure><img src="https://1297765105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMoZPkWOmnKvoMWGW4aeM%2Fuploads%2FOZF6MxUFdVSzTXYAhQEG%2FTooltip%20Example.png?alt=media&amp;token=d7b68889-11ec-4bef-8ae2-12be5e129f71" alt=""><figcaption></figcaption></figure>

## Guidelines

Tooltips can only contain a short volume of text.

{% hint style="danger" %}
Do not communicate critical information in a tooltip; think of it as a "Did you know?" prop.
{% endhint %}

### When to use

* When you need to display additional content to give more context to users.

### When not to use

* For long-text overlays. Use [popover](https://design.mirakl.com/design/components/overlays/popover.md) instead.
* As a bandaid on a broken experience.

## Content <a href="#main-elements" id="main-elements"></a>

Tooltip content should follow our [content guidelines](https://design.mirakl.com/content/writing-for-mirakl.md). Keep them clear and useful.

<figure><img src="https://1297765105-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMoZPkWOmnKvoMWGW4aeM%2Fuploads%2Fj9BwgkCgX0l5prI1JVfB%2Fimage.png?alt=media&amp;token=7f11a9a8-8683-4c15-92b5-0f33ce8662bb" alt=""><figcaption></figcaption></figure>


---

# 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://design.mirakl.com/design/components/overlays/tooltip.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.
