2 #Dropdown Dropdown
A dropdown menu. Clicking the toggle button opens and closes the drawer.
Use JavaScript to toggle the is-open
class in
order to open and close the dropdown.
Example
Drawer contents
<div class="dropdown">
<button class="dropdown__toggle">Open menu</button>
<div class="dropdown__drawer">
Drawer contents
</div>
</div>
Source:
styles.css
, line 168