mayurrawte

Tooltip

Buttons 1

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;

Dependencies

More by mayurrawte

View all
  • Skeleton

    Skeleton

    2
  • MCP Scope Inspector

    MCP Scope Inspector

    1
  • Feedback Buttons

    Feedback Buttons

    1
  • Accordion

    Accordion

    1
  • MCP Resource Browser

    MCP Resource Browser

  • MCP App Frame

    MCP App Frame

  • Counter

    Counter

  • Dropdown Menu

    Dropdown Menu

More in Buttons

View all
  • Texture Button

    Texture Button

    106
  • Notification Button

    Notification Button

    115
  • Button

    Button

    1
  • Base Button

    Base Button

    1
  • Button

    Button

    12
  • HeroUI Button Group

    HeroUI Button Group

    1
  • App Store Button

    App Store Button

    483
  • Button

    Button

    35