- Plugins
- Dropdown
Plugins
Tailwind CSS Dropdown
A dropdown menu displays a list of actions and more with JavaScript dropdown plugin.
Installation
To get started, install Dropdown plugin via npm, else you can skip this step if you are already using Preline UI as a package.
Example
Wrap the dropdown's toggle (your button or link) and the dropdown menu within .relative
, or another element that declares position: relative;
. Dropdown can be triggered from <a>
or <button>
elements to better fit your potential needs.
Methods
The HSDropdown
object is contained within the global window
object
Open item (public method).
Open item (static method).
Open item (mixed).
Demo examples
Looking for prebuilt UI components based on the Tailwind CSS? Preline UI packs hundreds of component examples for all your website needs.
Check out Preline UI Components