# Tooltip

A configurable, accessible tooltip surface for AI product workflows.

## Installation

```bash
npx shadcn@latest add https://amro-ui.vercel.app/r/tooltip.json
```

[Registry JSON](https://amro-ui.vercel.app/r/tooltip.json)

## Preview

```tsx
import { Tooltip, Button } from "@amro-ui/react";

export function Preview() {
  return (
    <div className="grid min-h-72 w-full place-items-center rounded-xl border bg-background p-6 sm:p-10">
      <Tooltip content="Helpful context"><Button variant="secondary">Focus me</Button></Tooltip>
    </div>
  );
}
```


## Source

### ui/tooltip.tsx

```tsx
"use client";

import "@/components/amro/amro-ui.css";

export { Tooltip } from "@/components/amro/components/tooltip";
export type { TooltipProps } from "@/components/amro/components/tooltip";
```



## Usage

A configurable, accessible tooltip surface for AI product workflows.

### Package

```tsx
import { Tooltip } from "@amro-ui/react";

<Tooltip />
```

### shadcn copy

```tsx
import { Tooltip } from "@/components/ui/tooltip";

<Tooltip />
```

