Toggle contextual overlays for displaying lists of links and more with the OUDS Web dropdown plugin.

On this page


Watch out!

Draft component

The dropdown menu component is not yet designed, and this component is only a draft for the moment. It will be updated in the future with the final design and will certainly need adjustments regarding the DOM. Use it as a temporary component to speed up your development.

Please refer to the Dropdowns in the Boosted documentation to have a full view of the dropdown menu component and its variations. The DOM should be the same as the Boosted one.

Note

OUDS Web components

The dropdown menu itself is used in several other components. Please refer to the following documentation pages to see how the dropdown menu is used in other components:

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>
html