Skip to content
← Tooltips

Modern snail

Tooltips by sahilxkhadka · styled with Tailwind

<!-- From Uiverse.io by sahilxkhadka  - Tags: simple, tooltip, button, hover effect, tailwind, tailwindbutton -->
<button
  class="group relative inline-flex items-center justify-center p-0.5 mb-2 mr-2 text-sm font-medium text-gray-900 rounded-lg group bg-gradient-to-br from-purple-500 to-pink-500 group-hover:from-purple-500 group-hover:to-pink-500 hover:text-white dark:text-white focus:ring-4 focus:outline-none focus:ring-purple-200 dark:focus:ring-purple-800"
>
  <span
    class="relative px-5 py-2.5 transition-all ease-in duration-75 bg-white dark:bg-gray-900 rounded-md group-hover:bg-opacity-0"
  >
    Hover For Tooltip
  </span>
  <div class="hidden group-hover:block">
    <div
      class="group absolute -top-12 left-1/2 z-50 flex -translate-x-1/2 flex-col items-center rounded-sm text-center text-sm text-slate-300 before:-top-2"
    >
      <div class="rounded-sm bg-black py-1 px-2">
        <p class="whitespace-nowrap">This is a tooltip.</p>
      </div>
      <div
        class="h-0 w-fit border-l-8 border-r-8 border-t-8 border-transparent border-t-black"
      ></div>
    </div>
  </div>
</button>

Stored at src/content/snippets/tooltips/sahilxkhadka_modern-snail-66.html · Tailwind classes compiled at build time for the preview and the Compiled CSS tab

esc