1.0.7 • Published 12 months ago

kuhvehl-dropdown v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Dropdown Menu

A lightweight, reusable dropdown menu module for JavaScript.

HTML Structure

Add the following HTML structure to your page. The dropdown menu items should be hard-coded into your HTML:

<div class="dropdown">
  <button class="dropdown-toggle">Menu</button>
  <ul class="dropdown-menu">
    <li><a href="#">Item 1</a></li>
    <li><a href="#">Item 2</a></li>
    <li><a href="#">Item 3</a></li>
  </ul>
</div>

CSS

Include the CSS file provided by the package:

<link
  rel="stylesheet"
  href="node_modules/kuhvehl-dropdown/styles/dropdown.css"
/>

Example

Here’s a full example:

html


1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago