Components Tooltip Tooltip Component

Tooltip Component

A responsive dark-themed tooltip component, part of a Triadic color scheme, suitable for a portfolio. Built with Tailwind CSS for a simple, minimal aesthetic.

Preview

HTML Code

<div class="relative flex justify-center items-center h-screen bg-gray-900 dark:bg-gray-800">
  <div class="group relative flex">
    <button class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 transition duration-300 ease-in-out">Hover Me</button>
    <div class="opacity-0 w-48 bg-gray-700 dark:bg-gray-900 text-white text-center text-xs rounded-lg py-2 absolute z-10 group-hover:opacity-100 bottom-full -translate-x-1/2 left-1/2 ml-0 mb-3 pointer-events-none transition-opacity duration-300">
      <p>This is a triadic color scheme tooltip for your portfolio.</p>
      <svg class="absolute text-gray-700 dark:text-gray-900 h-2 w-full left-0 top-full" x="0px" y="0px" viewBox="0 0 255 255" xml:space="preserve"><polygon class="fill-current" points="0,0 127.5,127.5 255,0"/></svg>
    </div>
  </div>
</div>

Related Components

Neumorphic Tooltip Component

A sophisticated Neumorphism-styled tooltip component suitable for business websites, employing vibrant colors and designed for dark mode support.

Open

Minimalist Pastel E-commerce Tooltip

Minimalist pastel tooltip component for e-commerce, with responsive design and dark mode support.

Open

Tooltip Component

A responsive Material Design tooltip component with monochromatic color scheme for e-commerce, featuring dark mode support. No JavaScript, HTML and Tailwind CSS only.

Open