@charlesvill/drop-down-menu
v1.0.0
Published
resuable drop down menu boilerplate code to use as needed
Readme
Drop-down-menu
- Basic script and style sheet for dropdown menus
- sample html provided
Implementation
- Populate the html button and the dropdown menu with divs, class names and Ids
- import the script into your working js file and call a new dropdownMenu obj for each dropdown menu passing through:
- Dropdown Button id
- Dropdown Menu id
- toggle arrow id (if you wish to have animated icon)
- If each dropdown menu saved as a const variable you're good to go!
