0.0.3 • Published 6 months ago

hamburger-navigation-sudhanshu v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

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);
0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago

0.0.0

6 months ago