组件 提示框 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>

相关组件

工具提示组件

一个响应式 Material Design 工具提示框组件,具有用于电子商务的单色配色方案,具有深色模式支持。没有 JavaScript、HTML 和 Tailwind CSS。

打开

拟物化工具提示组件

一个复杂的工具提示组件,采用拟物化样式和大地色调设计,适用于支持深色模式的电子商务应用程序。

打开

工具提示组件

一个具有微交互的响应式提示组件,旨在提高用户参与度,具有深色主题和引人入胜的动画效果。

打开