About
A hoverable/focusable label that reveals extra context above or below a trigger element, with a configurable open delay.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Tooltip to your project and fits it to your theme.
Code
How Tooltip is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Tooltip } from "@/components/ui/tooltip";
export function Example() {
return (
<div className="flex min-h-[200px] w-full items-center justify-center">
<Tooltip content="Auto-approve read-only tool calls" side="top">
<button className="inline-flex items-center justify-center rounded-md border border-border bg-secondary px-4 py-2 text-sm font-medium text-secondary-foreground shadow-sm hover:bg-accent">
Auto-approve
</button>
</Tooltip>
</div>
);
}
export default Example;
















