drop-down-menu-jo
Version:
A simple drop-down menu built from scratch.
22 lines (14 loc) • 468 B
Markdown
# Drop-down Menu
Publishing my first module to npm! It's a very simple drop-down menu that I built from scratch.
## Installation
```
npm install drop-down-menu-jo
```
## Usage
```
import dropDownMenu from 'drop-down-menu-jo';
// Appends drop-down menu to the <body> node of the current document
const body = document.querySelector('body');
const exampleDropDownMenu = dropDownMenu('Option 1', 'Option 2', 'Option 3');
body.appendChild(exampleDropDownMenu);
```