# Tooltip Content 4 - With image

> Tooltip with Image.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/tooltip-tooltip-content-4).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/tooltip-tooltip-content-4
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/tooltip-tooltip-content-4-light-d74a324e1692c679.png
- Registry item: https://shadcnblocks.com/r/tooltip-tooltip-content-4.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/tooltip-tooltip-content-4.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `button`, `tooltip`

## Files

### `example/tooltip/tooltip-content-4.tsx`

```tsx
"use client";

import { Button } from "@/components/ui/button";
import {
  Tooltip,
  TooltipContent,
  TooltipProvider,
  TooltipTrigger,
} from "@/components/ui/tooltip";

export const title = "Tooltip with Image";

const Example = () => (
  <TooltipProvider>
    <Tooltip>
      <TooltipTrigger asChild>
        <Button variant="outline">Preview</Button>
      </TooltipTrigger>
      <TooltipContent className="max-w-xs p-0">
        <div className="flex flex-col gap-1 p-3">
          {/** biome-ignore lint/performance/noImgElement: "Kibo UI is framework agnostic" */}
          <img
            alt="Preview"
            className="mb-1 h-[150px] w-[257px] rounded-md"
            height={300}
            src="https://placehold.co/514x300"
            width={514}
          />
          <p className="font-semibold">Product Preview</p>
          <p className="text-xs">
            View the full product details and specifications
          </p>
        </div>
      </TooltipContent>
    </Tooltip>
  </TooltipProvider>
);

export default Example;
```
