Dropdown
Toggle contextual overlays for displaying lists of links and more with the OUDS Web dropdown plugin.
On this page
Dropdown
Be sure to adapt the semantic of the tags you use for the dropdown items. For example, use <button> for actions in the page and <a> for navigation links.
<div class="dropdown mb-medium">
<button type="button" class="btn btn-default btn-expand" data-bs-toggle="dropdown" aria-expanded="false">
Expand button
</button>
<ul class="dropdown-menu">
<li><button type="button" class="dropdown-item">Action</button></li>
<li><hr class="dropdown-divider" /></li>
<li><h6 class="dropdown-header">Dropdown header</h6></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item disabled">A disabled action</a></li>
</ul>
</div>
<div class="dropdown">
<button type="button" class="link link-expand" data-bs-toggle="dropdown" aria-expanded="false">
Expand link
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</div>