1.0.1 • Published 2 years ago

pbdropdown v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Hi!

Don't expect much here. This is just a practicing modul, that makes drop down menus. These are only visual and don't work with screen readers.

But if you want to try it out here is a quick introductioon...

  1. step: you should download the package with 'npm install pbdropdown'

  2. step: import the one and only funtion 'dropdown'

  3. step: the funtion takes two inputs the first is the html element the 'menu' and the second is a custom css class so you can design it. Ex.: dropdown(menu, 'myClass')

... and that is it.

NOTE:

  • the html element should be a div
  • in the div you can add any kind of html, but be aware the first element will be used as the header for the menu
  • the class name that you inputed is not an actual class its just the start of the 2 classes that are aplied to the head of the menu and to the body of the menu, so if you inputed 'myClass' the classes that you can refer to is 'myClassHeader' and 'myClassBody'.
1.0.1

2 years ago

1.0.0

2 years ago