1.1.0 • Published 3 years ago

create-dd-menu v1.1.0

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

What is this?

Make a dropdown menu out of your desired HTML element

Installation

npm i create-dd-menu --save

Then...

import { makeDropDown } from 'create-dd-menu';

makeDropDown(yourTargetElement, `background`, `color`);

Your HTML element should have class of dropbtn and that element should have nested child with class of dropdown-content.

Your CSS file should include (at the top)

@import '~/create-dd-menu/style.css'