---
title: "Tooltip"
subtitle: "<Tooltip> shows extra context on hover or keyboard focus."
---

Shows a hint on mouse hover or keyboard focus, and on tap on touch screens:

```mdx
Deployments are <Tooltip tip="A directory of static output that is never modified after it's built">immutable</Tooltip>,
so rolling back just switches the <Tooltip tip="The deployment the site URL points to" headline="Production pointer" cta="Learn more" href="/guides/deploy/previews-and-rollbacks">production pointer</Tooltip>.
```

Deployments are <Tooltip tip="A directory of static output that is never modified after it's built">immutable</Tooltip>, so rolling back just switches the <Tooltip tip="The deployment the site URL points to" headline="Production pointer" cta="Learn more" href="/guides/deploy/previews-and-rollbacks">production pointer</Tooltip>.

<ParamField path="tip" type="string | JSX" required>Tooltip content (`content` and `text` also work).</ParamField>
<ParamField path="side" type="top | right | bottom | left" default="top">Preferred side; flips automatically near the viewport edge.</ParamField>
<ParamField path="sideOffset" type="number" default="6">Distance from the trigger text (pixels).</ParamField>
<ParamField path="headline" type="string">Bold first line.</ParamField>
<ParamField path="cta" type="string">Link text inside the tooltip.</ParamField>
<ParamField path="href" type="url">Link target for `cta`.</ParamField>
