Built on 21st
Community

Dependencies

Tags

Tooltip

Tooltip

Here is tooltip component

Default preview
// src/DemoOne.tsx (or your demo file path)

import React from 'react';
import { Component as TooltipExampleComponent } from '@/components/ui/tooltip';
import { cn } from "@/lib/utils"; 

const DemoOne = () => {
  return (
    <div className={cn("flex w-full min-h-screen justify-center items-center p-4 bg-gray-200")}>
      <div className="rounded-lg shadow-xl overflow-hidden w-[500px] h-[450px] flex flex-col">
        
        <div className="flex-grow">
          <TooltipExampleComponent
            width={500}
            height={350} 
            showControls={true}
          />
        </div>
      </div>
    </div>
  );
};

export { DemoOne };

Dependencies

@visx/tooltip

Source

airbnb.io/visx/tooltip

Published

5/23/2025