@therookiexe/dropdown-menu-module
v1.0.1
Published
A simple, lightweight, and modern dropdown menu component in vanilla JavaScript.
Maintainers
Readme
Dropdown Menu Module
A simple, modern dropdown menu component written in vanilla JavaScript — no dependencies required.
🚀 Installation
npm install dropdown-menu-module
🧠 Usage
js
Copy code
import dropdownMenu from "dropdown-menu-module";
const dropdown = dropdownMenu("Menu", [
{ label: "Home", href: "#" },
{ label: "About", href: "#" },
{ label: "Contact", href: "#" },
]);
document.body.appendChild(dropdown);
💅 Features
Lightweight and dependency-free
Works in any project (plain JS, React, etc.)
Automatically injects minimal CSS
Closes when clicking outside
Easy to customize and style
📁 .gitignore
nginx
Copy code
node_modules
dist
🧑💻 Author
TheRookiexe
GitHub: TheRookiexe
📄 License
MIT © 2025 TheRookiexe