Tooltip Toolbar
A copy-paste sidebars & docks component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Sidebars & DocksHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-sb2-tooltip-toolbar" role="toolbar" aria-label="Formatting" aria-orientation="vertical">
<div class="nuda-sb2-tooltip-toolbar__item">
<button type="button" class="nuda-sb2-tooltip-toolbar__btn" aria-label="Bold">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 4h8a4 4 0 010 8H6zM6 12h9a4 4 0 010 8H6z" />
</svg>
</button>
<span class="nuda-sb2-tooltip-toolbar__tip" role="tooltip" aria-hidden="true">Bold</span>
</div>
<!-- More items -->
</div>CSS
.nuda-sb2-tooltip-toolbar {
display: inline-flex;
flex-direction: column;
gap: 6px;
padding: 8px;
background: rgba(255,255,255,.03);
border: 1px solid rgba(255,255,255,.08);
border-radius: 14px;
}
.nuda-sb2-tooltip-toolbar__item {
position: relative;
}
.nuda-sb2-tooltip-toolbar__btn {
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: 0;
border-radius: 10px;
color: #a0a0a8;
cursor: pointer;
transition: background .2s,color .2s;
}
.nuda-sb2-tooltip-toolbar__btn svg {
width: 18px;
height: 18px;
}
.nuda-sb2-tooltip-toolbar__btn:hover,.nuda-sb2-tooltip-toolbar__btn:focus-visible {
background: rgba(255,255,255,.06);
color: #fafafa;
}
.nuda-sb2-tooltip-toolbar__btn:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
.nuda-sb2-tooltip-toolbar__tip {
position: absolute;
left: calc(100% + 10px);
top: 50%;
transform: translate(-6px,-50%);
padding: 6px 10px;
background: #161616;
border: 1px solid rgba(255,255,255,.1);
border-radius: 8px;
color: #fafafa;
font-size: 11px;
font-weight: 500;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity .25s,transform .3s cubic-bezier(.16,1,.3,1);
z-index: 2;
}
.nuda-sb2-tooltip-toolbar__btn:hover + .nuda-sb2-tooltip-toolbar__tip,.nuda-sb2-tooltip-toolbar__btn:focus-visible + .nuda-sb2-tooltip-toolbar__tip {
opacity: 1;
transform: translate(0,-50%);
}
@media (prefers-reduced-motion:reduce) {
.nuda-sb2-tooltip-toolbar__tip {
transition: none;
}
}
How to use Tooltip Toolbar
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.