This repository holds a custom npm package for creating a dropdown menu from DOM elements.
To install this package:
npm install @xsherryhe/drop-down-menu
To use this package:
-
Use the dropDownMenu function by adding the following line at the top level of your code:
import dropDownMenu from '@xsherryhe/drop-down-menu';
-
Include the drop-down-menu.css stylesheet in your project. This is the file path from the root directory:
node_modules/@xsherryhe/drop-down-menu/drop-down-menu.css