Skip to content

Notification Setting Row

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

Notification CenterHTMLCSSany framework
Push notifications
Get notified on this device

Copy into your project

HTML
<div class="nuda-nset">
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
       stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <path d="M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9" />
    <path d="M13.7 21a2 2 0 01-3.4 0" />
  </svg>
  <div class="nuda-nset__body">
    <div>Push notifications</div>
    <span>Get notified on this device</span>
  </div>
  <label class="nuda-nset__toggle is-on">
    <span></span>
  </label>
</div>
CSS
.nuda-nset {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  width: 100%;
  max-width: 280px;
}

.nuda-nset > svg {
  width: 18px;
  height: 18px;
  color: #e4ff54;
  flex-shrink: 0;
}

.nuda-nset__body {
  flex: 1;
}

.nuda-nset__body > div {
  color: #fafafa;
  font-size: 12px;
  font-weight: 500;
}

.nuda-nset__body > span {
  display: block;
  color: #63636e;
  font-size: 10px;
  margin-top: 1px;
}

.nuda-nset__toggle {
  width: 30px;
  height: 18px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .3s;
}

.nuda-nset__toggle span {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fafafa;
  border-radius: 50%;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.nuda-nset__toggle.is-on {
  background: #e4ff54;
}

.nuda-nset__toggle.is-on span {
  transform: translateX(12px);
  background: #09090b;
}

How to use Notification Setting Row

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 notification center components

← Browse all NudaUI components