0.0.3 • Published 2 years ago

hamburger-navigation-sudhanshu v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago