npm.io
0.0.3 • Published 2 years ago

hamburger-navigation-sudhanshu

Licence
ISC
Version
0.0.3
Deps
0
Size
2 kB
Vulns
0
Weekly
0

menu-button-npm

A lightweight npm package to create a menu button with a dropdown list.

Installation

Install the package using npm:

npm install hamburger-navigation-sudhanshu

How it works?

Import it in Your js file.

import { menuButton } from "./menu.js";

and pass the menu button ,content Div and Array of options as parameter.

const Button = document.querySelector("button");
const ContentDiv = document.querySelector(".ContentDiv");
const optionsArray = ["option1","option2"];
menuButton(button,ContentDiv,optionsArray);