mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
7ca5d781f9
* Update components/tooltips.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> * Update components/tooltips.mdx Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> * copyedit --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
---
|
|
title: "Tooltips"
|
|
description: "Add contextual help with hover tooltips for terms and concepts."
|
|
keywords: ["tooltips", "hover help", "contextual information", "explanatory", "definitions"]
|
|
---
|
|
|
|
Use tooltips to provide additional context or definitions when a user hovers over a string of text. Tooltips can include optional call-to-action links.
|
|
|
|
**Example**: <Tooltip headline="API" tip="Application Programming Interface: a set of protocols for software applications to communicate." cta="Read our API guide" href="/api-reference">API</Tooltip> documentation helps developers understand how to integrate with your service.
|
|
|
|
```mdx Tooltip example wrap
|
|
<Tooltip headline="API" tip="Application Programming Interface: a set of protocols for software applications to communicate." cta="Read our API guide" href="/api-reference">API</Tooltip> documentation helps developers understand how to integrate with your service.
|
|
```
|
|
|
|
## Properties
|
|
|
|
<ResponseField name="tip" type="string" required>
|
|
The text displayed in the tooltip.
|
|
</ResponseField>
|
|
|
|
<ResponseField name="headline" type="string">
|
|
Text displayed above the `tip` text.
|
|
</ResponseField>
|
|
|
|
<ResponseField name="cta" type="string">
|
|
The call-to-action text for a link within the tooltip.
|
|
</ResponseField>
|
|
|
|
<ResponseField name="href" type="string">
|
|
URL for the call-to-action link. Required when using `cta`.
|
|
</ResponseField>
|