组件 提示框 Neumorphic Tooltip 组件

Neumorphic Tooltip 组件

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

预览

HTML 代码

<div class="relative group flex items-center">
    <!-- Tooltip Trigger -->
    <button class="bg-purple-600 text-white rounded-full p-2 shadow-lg focus:outline-none">
        Hover me
    </button>

    <!-- Tooltip -->
    <div class="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-48 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 text-sm rounded-lg shadow-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out z-10">
        <div class="p-3">
            <div class="flex items-center space-x-3">
                <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-8 h-8 rounded-full">
                <span class="font-semibold">John Doe</span>
            </div>
            <p class="mt-2">This is a tooltip description to provide additional information.</p>
        </div>
        <div class="rounded-lg bg-purple-600 p-2 text-white text-center font-bold transition-transform transform hover:scale-105">Learn More</div>
    </div>
</div>

相关组件

粗野主义工具提示框组件

用于社交媒体的粗野主义风格的工具提示组件,具有灰度配色方案和复杂的交互元素。它是响应式的,并支持使用 Tailwind CSS 的深色模式,无需 JavaScript。

打开

工具提示组件

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

打开

复古工具提示组件

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

打开