Skip to content

Sticky Bottom Share Bar

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

Social ShareHTMLCSSany framework
Getting started with NudaUI5 min read

Copy into your project

HTML
<div class="nuda-shr-sticky">
  <div class="nuda-shr-sticky__inner">
    <div class="nuda-shr-sticky__info">
      <span class="nuda-shr-sticky__ttl">Getting started with NudaUI</span>
      <span class="nuda-shr-sticky__sub">5 min read</span>
    </div>
    <div class="nuda-shr-sticky__actions">
      <button class="nuda-shr-sticky__btn">
        <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>
      <button class="nuda-shr-sticky__btn">
        <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>
      <button class="nuda-shr-sticky__cta">Share</button>
    </div>
  </div>
</div>
CSS
.nuda-shr-sticky {
  width: 260px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: .6rem .75rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}

.nuda-shr-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.nuda-shr-sticky__info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
  min-width: 0;
}

.nuda-shr-sticky__ttl {
  color: #cfcfcf;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nuda-shr-sticky__sub {
  color: #777;
  font-size: .65rem;
}

.nuda-shr-sticky__actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.nuda-shr-sticky__btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.1);
  background: #1a1a1a;
  border-radius: 8px;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s,color .15s;
}

.nuda-shr-sticky__btn:hover {
  border-color: rgba(255,255,255,.25);
  color: #cfcfcf;
}

.nuda-shr-sticky__cta {
  background: #e4ff54;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: .35rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}

.nuda-shr-sticky__cta:hover {
  opacity: .85;
}

How to use Sticky Bottom Share 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.

More social share components

← Browse all NudaUI components