Skip to content

Rich Tooltip

A copy-paste tooltips component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

TooltipsHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-richtt-wrap">
  <button class="nuda-richtt-trigger">Sara Linde</button>
  <div class="nuda-richtt" role="tooltip">
    <div class="nuda-richtt__head">
      <span class="nuda-richtt__avatar"></span>
      <div>
        <div class="nuda-richtt__name">Sara Linde</div>
        <div class="nuda-richtt__role">Lead Designer · Stockholm</div>
      </div>
    </div>
    <div class="nuda-richtt__bio">
      12y in product design. Lives for tiny micro-interactions.
    </div>
  </div>
</div>
CSS
.nuda-richtt-wrap {
  position: relative;
  display: inline-block;
}

.nuda-richtt-trigger {
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #fafafa;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background .25s;
}

.nuda-richtt-wrap:hover .nuda-richtt-trigger,.nuda-richtt-trigger:focus {
  background: rgba(255,255,255,.07);
}

.nuda-richtt {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(8px);
  width: 220px;
  padding: 12px;
  background: #111114;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 14px 36px -10px rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s,transform .35s cubic-bezier(.16,1,.3,1);
  z-index: 10;
}

.nuda-richtt-wrap:hover .nuda-richtt,.nuda-richtt-wrap:focus-within .nuda-richtt {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nuda-richtt__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.nuda-richtt__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ff6dd4,#9d6dff);
  flex-shrink: 0;
}

.nuda-richtt__name {
  color: #fafafa;
  font-size: 12px;
  font-weight: 600;
}

.nuda-richtt__role {
  color: #a0a0a8;
  font-size: 10px;
}

.nuda-richtt__bio {
  color: #a0a0a8;
  font-size: 11px;
  line-height: 1.5;
}

How to use Rich Tooltip

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More tooltips components

← Browse all NudaUI components