组件 提示框 工具提示组件

工具提示组件

响应式深色主题工具提示组件,是 Triadic 配色方案的一部分,适用于投资组合。使用 Tailwind CSS 构建,实现简单、简约的美感。

预览

HTML 代码

<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>

相关组件

Neumorphic Tooltip 组件

一个复杂的 Neumorphism 风格的工具提示组件,适用于商业网站,采用鲜艳的色彩,专为暗模式支持而设计。

打开

神经拟态工具提示框

Portfolio 的 Neumorphic Tooltip

打开

复古工具提示组件

一个复古/古董主题的工具提示组件,具有响应效果和暗模式支持。

打开