npm

@uttamkn/dropdown

1.0.1 • Public • Published

dropDown

A simple JavaScript module for creating toggleable dropdown menus.

Installation

npm install @uttamkn/dropdown

Usage

import dropDown from "@uttamkn/dropdown";

document.addEventListener("DOMContentLoaded", () => {
  const button = document.querySelector(".dropbtn");
  const menu = document.querySelector(".dropdown-content");
  dropDown(button, menu);
});

Readme

Keywords

none

Package Sidebar

Install

npm i @uttamkn/dropdown

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.28 kB

Total Files

3

Last publish

Collaborators

  • uttamkn