1.1.0 • Published 3 years ago
create-dd-menu v1.1.0
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'