# Gliding Tooltip

> One tooltip shared by a row of icon buttons. It glides from button to button as the pointer moves, easing its width to each label, with a soft highlight gliding behind.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Overlays |
| Live preview | https://uibrik.com/components/gliding-tooltip |
| Writes | 1 file into `components/uibrik/gliding-tooltip/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 30, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/gliding-tooltip.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/gliding-tooltip`.

Can't run commands? https://uibrik.com/components/gliding-tooltip/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { GlidingTooltip } from "@/components/uibrik/gliding-tooltip/gliding-tooltip";

<GlidingTooltip
  side="top"
  delay={500}
  duration={0.28}
  offset={8}
  highlight
  label="Navigation"
>
  …
</GlidingTooltip>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/gliding-tooltip.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `side` | `"top" \| "bottom"` | `"top"` | Which side of the row the tooltip sits on. |
| `delay` | `number` | `500` | How long the pointer rests before the first tooltip shows. The next ones show at once. |
| `duration` | `number` | `0.28` | How long the tooltip and highlight take to glide. |
| `offset` | `number` | `8` | Gap between the button and the tooltip. |
| `highlight` | `boolean` | `true` | Glide a soft highlight behind the hovered button. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | Buttons or links with an aria-label or data-tooltip. A data-shortcut adds a key hint. |
| `label` | `string` |  | Names the toolbar for screen readers. |
| `className` | `string` |  | Classes for the row, e.g. its fill, padding and gap. |

## Where it fits

- **Icon toolbars**: Editor and canvas toolbars read as one control instead of a row of popping labels. Pairs with [Selection Toolbar](https://uibrik.com/components/selection-toolbar.md) (Pro).
- **Docks and rails**: Icon-only navigation names each item without a flicker between them. Pairs with [Floating Navbar](https://uibrik.com/components/floating-navbar.md) (Pro).
- **Shortcut hints**: A data-shortcut on a button adds a key hint, teaching shortcuts as people browse.

## Same shelf: Overlays

- [Hover Card](https://uibrik.com/components/hover-card.md): A preview card that opens while you rest on a link and stays while you move into it, so its own links work.
- [Mitosis Menu](https://uibrik.com/components/mitosis-menu.md) (Pro): A round button that divides like a cell: each option buds off on a stretching neck of liquid that snaps, then fuses back in when the menu closes.
- [Morphing Popover](https://uibrik.com/components/morphing-popover.md): A button that grows into a panel by springing its real size and corners, so nothing stretches, then folds back into the button.
- [Notification Center](https://uibrik.com/components/notification-center.md) (Pro): A bell with an unread count that opens every notification in one panel: grouped by day, marked read as you open them, cleared one at a time or all at once.
- [Notification Stack](https://uibrik.com/components/notification-stack.md): Notifications that pile up as panes of frosted glass, fan out on hover and blur away when swiped.
- [Popover](https://uibrik.com/components/popover.md): A panel that grows out of its button, flips when there's no room, and keeps its arrow pointed at the button.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/gliding-tooltip/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
