Skip to content

Checkbox Menu

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

Dropdowns & MenusHTMLCSSany framework
  • Active
  • Archived
  • Draft

Copy into your project

HTML
<ul class="nuda-ckm">
  <li class="nuda-ckm__item"><span class="nuda-ckm__box nuda-ckm__box--on">✓</span> Active</li>
  <li class="nuda-ckm__item"><span class="nuda-ckm__box nuda-ckm__box--on">✓</span> Archived</li>
  <li class="nuda-ckm__item"><span class="nuda-ckm__box"></span> Draft</li>
</ul>
CSS
.nuda-ckm {
  list-style: none;
  margin: 0;
  padding: .35rem;
  min-width: 180px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  animation: _ckmIn .18s ease-out;
}

.nuda-ckm__item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .6rem;
  border-radius: 6px;
  font-size: .8rem;
  color: #cfcfcf;
  cursor: pointer;
}

.nuda-ckm__item:hover {
  background: rgba(255,255,255,.05);
}

.nuda-ckm__box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: #0a0a0a;
}

.nuda-ckm__box--on {
  background: #e4ff54;
  border-color: #e4ff54;
}

@keyframes _ckmIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ckm {
    animation: none;
  }
}

How to use Checkbox Menu

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 dropdowns & menus components

← Browse all NudaUI components