# DropLab A generic dropdown for all of your custom dropdown needs. ## Usage DropLab can be used by simply adding a `data-dropdown-trigger` HTML attribute. This attribute allows us to find the "trigger" _(toggle)_ for the dropdown, whether that is a button, link or input. The value of the `data-dropdown-trigger` should be a CSS selector that DropLab can use to find the trigger's dropdown list. You should also add the `data-dropdown` attribute to declare the dropdown list. The value is irrelevant. The DropLab class has no side effects, so you must always call `.init` when the DOM is ready. `DropLab.prototype.init` takes the same arguments as `DropLab.prototype.addHook`. If you do not provide any arguments, it will globally query and instantiate all droplab compatible dropdowns. ```html Toggle