@lonewolf045/drop-down

0.2.1 • Public • Published

@lonewolf045/dropdown

npm (scoped)

I have made a package to add functionality of drop down menu so that it can be quickly used in the future.


    import dropDown from '@lonewolf045/drop-down';
    const containerDiv = document.querySelector('.click-info-container');
    const clickButton = document.querySelector('#click-button');
    dropDown(clickButton,containerDiv);
You just have to pass refernce to button and the container of menu and the function will make a drop down menu, but you have to style it yourself.

Readme

Keywords

Package Sidebar

Install

npm i @lonewolf045/drop-down

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

2.6 kB

Total Files

4

Last publish

Collaborators

  • lonewolf045