npm-dropdown-setup
v1.0.1
Published
Simple function to set up dropdown menus using CSS classes.
Readme
What is this?
Create one or more dropdown menus which can be layered.
Installation
npm install npm-dropdown-setup --save
import setUpDropdown from 'npm-dropdown-setup';
const setUpDropdown = require('npm-dropdown-setup);
setUpDropdown('./#trigger-identifier', 'dropdown-content-class', 'new-class');
Notes
Make sure that the class names for the dropdown content and the style which will be applied are passed to the function without dots in the beginning.
