---
title: "Tooltip"
description: "A short label that appears on hover or focus to explain a button or icon, with delay and placement options. Built on Base UI."
plan: Free
docs: https://ui.edbn.me/docs/components/tooltip
---

# Tooltip

A short label that appears on hover or focus to explain a button or icon, with delay and placement options. Built on Base UI.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/tooltip.json
```

## Dependencies
- npm: @base-ui/react@^1.8.0
- edbn: edbn-base

## Usage

```tsx examples/tooltip-basic.tsx
"use client";
import { Bell } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from "@/components/ui/tooltip";

export default function TooltipBasicPreview() {
  return (
    <Tooltip>
      <TooltipTrigger
        render={
          <Button size="icon" variant="outline" aria-label="Notifications" />
        }
      >
        <Bell />
      </TooltipTrigger>
      <TooltipContent>Notifications</TooltipContent>
    </Tooltip>
  );
}
```

## Files
- components/ui/tooltip.tsx (65 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
