1.0.4 • Published 3 years ago
@yuxuan-zheng/xuan-common v1.0.4
Xuan Common
This module supply some stuff that is commonly used.
How to use
In the html file add the following line:
<script src="path-to-xuan-commin/main.js"></script>
Dropdown
Add the dropdown class to the element you want it to be a dropdown like following does.
<div class="dropdown">
<button class="dropdown-btn">Dropdown</button>
<div class="dropdown-content">
<p>Content1</p>
<p>Content2</p>
<p>Content3</p>
<p>Content4</p>
<p>Content5</p>
</div>
</div>