@lonewolf045/dropdown
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.