@riondino/vanilla-dropdown
v1.0.0
Published
A simple and accessible dropdown component in vanilla JS.
Downloads
13
Maintainers
Readme
@riondino/dropdown
A lightweight JavaScript utility for toggling dropdown menus.
It handles visibility and interactions — you bring the markup and behavior.
✨ Features
- Click-to-toggle dropdowns (can extend to hover if needed)
- Handles multiple dropdowns on the same page
- Auto-closes when clicking outside
- No dependencies, framework-agnostic
- You define the menu and actions — this just wires it up
📦 Installation
npm install @riondino/dropdown