Floating Vertical Bar
A copy-paste social share component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Social ShareHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-shr-vbar">
<button class="nuda-shr-vbar__btn" title="X / Twitter">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.737-8.835L1.254 2.25H8.08l4.26 5.632zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
</button>
<div class="nuda-shr-vbar__divider"></div>
<button class="nuda-shr-vbar__btn" title="Facebook">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
</button>
<div class="nuda-shr-vbar__divider"></div>
<button class="nuda-shr-vbar__btn" title="LinkedIn">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>
</button>
<div class="nuda-shr-vbar__divider"></div>
<button class="nuda-shr-vbar__btn" title="Copy link">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
</button>
</div>CSS
.nuda-shr-vbar {
display: flex;
flex-direction: column;
align-items: center;
background: #141414;
border: 1px solid rgba(255,255,255,.1);
border-radius: 14px;
padding: .4rem;
gap: 0;
width: 44px;
box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.nuda-shr-vbar__btn {
width: 36px;
height: 36px;
border: none;
background: transparent;
color: #777;
cursor: pointer;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
transition: background .15s,color .15s;
}
.nuda-shr-vbar__btn:hover {
background: rgba(228,255,84,.12);
color: #e4ff54;
}
.nuda-shr-vbar__divider {
width: 20px;
height: 1px;
background: rgba(255,255,255,.08);
margin: .1rem 0;
}
How to use Floating Vertical Bar
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.