Action Menu
A copy-paste dropdowns & menus component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Dropdowns & MenusHTMLCSSany framework
- ✏️ Edit
- 📋 Duplicate
- 🔗 Copy link
Copy into your project
HTML
<ul class="nuda-am">
<li class="nuda-am__item"><span class="nuda-am__ic">✏️</span> Edit</li>
<li class="nuda-am__item"><span class="nuda-am__ic">📋</span> Duplicate</li>
<li class="nuda-am__item"><span class="nuda-am__ic">🔗</span> Copy link</li>
</ul>CSS
.nuda-am {
list-style: none;
margin: 0;
padding: .35rem;
min-width: 170px;
background: #141414;
border: 1px solid rgba(255,255,255,.1);
border-radius: 10px;
animation: _amIn .18s ease-out;
}
.nuda-am__item {
display: flex;
align-items: center;
gap: .6rem;
padding: .5rem .6rem;
border-radius: 6px;
font-size: .8rem;
color: #cfcfcf;
cursor: pointer;
}
.nuda-am__item:hover {
background: rgba(228,255,84,.1);
color: #fafafa;
}
.nuda-am__ic {
font-size: .85rem;
}
@keyframes _amIn {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: none;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-am {
animation: none;
}
}
How to use Action 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.