tigran tumasov

Tooltip

Component 1

About

A set of headings, vertically stacked, that each reveal an related section of content. Commonly referred to as an accordion.

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-1";

export default function DefaultDemo() {
  return (
        <div className="flex justify-between gap-4">
          <Tooltip text="The Evil Rabbit Jumped over the Fence">
            <span className="dark:text-white">Top</span>
          </Tooltip>
          <Tooltip position="bottom" text="The Evil Rabbit Jumped over the Fence">
            <span className="dark:text-white">Bottom</span>
          </Tooltip>
          <Tooltip position="left" text="The Evil Rabbit Jumped over the Fence">
            <span className="dark:text-white">Left</span>
          </Tooltip>
          <Tooltip position="right" text="The Evil Rabbit Jumped over the Fence">
            <span className="dark:text-white">Right</span>
          </Tooltip>
        </div>
  );
}

Dependencies

More by tigran tumasov

View all
  • Product Hunt Badge

    Product Hunt Badge

    1.8K
  • Book

    Book

    162
  • Calendar

    Calendar

    152
  • Theme Switcher

    Theme Switcher

    135
  • Snippet

    Snippet

    124
  • Table

    Table

    123
  • Toggle

    Toggle

    89
  • Feedback

    Feedback

    88