组件 提示框 极简工具提示框

极简工具提示框

用于博客/内容网站的极简扁平化设计工具提示框组件,具有单色配色方案和简单的布局。它是响应式的,并支持使用 Tailwind CSS 的深色模式。

预览

HTML 代码

<div class="relative flex items-center group">
  <button class="text-gray-600 dark:text-gray-300 px-4 py-2 rounded-md border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-400 dark:focus:ring-gray-500">Hover Me</button>
  <div class="absolute bottom-full mb-2 hidden group-hover:block w-48 p-2 text-sm text-white bg-gray-800 dark:bg-gray-200 rounded-md shadow-lg">
    <span class="text-gray-200 dark:text-gray-800">This is a minimalist tooltip.</span>
    <svg class="absolute top-full left-1/2 transform -translate-x-1/2 w-3 h-3 text-gray-800 dark:text-gray-200 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 255 255"><polygon points="0,0 127.5,127.5 255,0"/></svg>
  </div>
</div>

相关组件

微交互工具提示组件

一个简单而引人入胜的提示工具组件,具有微交互动画、响应式设计和暗黑主题支持,采用Tailwind CSS构建。无需JavaScript。

打开

工具提示组件

一个中构工具提示组件,具有互补的配色方案、适度的复杂度和响应式设计,支持深色主题,适合博客或内容使用。

打开

工具提示组件

一个用于活动/会议网站的极简扁平设计工具提示组件,采用黑白配色方案和明亮的点缀。

打开