Origin UI

Tooltip

Buttons 48

About

Enhanced shadcn/ui tooltip

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 { Button } from "@/components/ui/button";
import {
  Tooltip,
  TooltipContent,
  TooltipProvider,
  TooltipTrigger,
} from "@/components/ui/tooltip";

function Component() {
  return (
    <TooltipProvider delayDuration={0}>
      <Tooltip>
        <TooltipTrigger asChild>
          <Button variant="outline" size="sm">
            Tiny
          </Button>
        </TooltipTrigger>
        <TooltipContent className="px-2 py-1 text-xs">
          This is a simple tooltip
        </TooltipContent>
      </Tooltip>
    </TooltipProvider>
  );
}

export { Component };

export default Component;

Dependencies

More by Origin UI

View all
  • Dialog

    Dialog

    1.3K
  • Avatar

    Avatar

    1K
  • useImageUpload

    useImageUpload

    950
  • usePagination

    usePagination

    635
  • Popover

    Popover

    390
  • Button

    Button

    382
  • Command

    Command

    345
  • Calendar [React Day Picker]

    Calendar [React Day Picker]

    270

More in Buttons

View all
  • Texture Button

    Texture Button

    106
  • Notification Button

    Notification Button

    115
  • Button

    Button

    1
  • Button

    Button

    12
  • Base Button

    Base Button

    1
  • HeroUI Button Group

    HeroUI Button Group

  • App Store Button

    App Store Button

    483
  • Button

    Button

    35