Mega Menu
A wide dropdown menu built on native <details>
and CSS Anchor Positioning - zero JavaScript, full keyboard
support.
Mega Menu
On desktop it opens on click (not on hover - it also works from the keyboard) as a panel anchored to the button. On mobile the same structure turns into a plain accordion inside the Offcanvas.
<details class="mega-menu">
<summary class="mega-menu-trigger">Components</summary>
<div class="mega-menu-content">
<div>
<h6 class="mega-menu-col-title">Category 1</h6>
<a href="#" class="mega-menu-link">Link 1</a>
<a href="#" class="mega-menu-link">Link 2</a>
</div>
<div>
<h6 class="mega-menu-col-title">Category 2</h6>
<a href="#" class="mega-menu-link">Link 3</a>
</div>
</div>
</details>