skip to content

Filter

Use the Filter component to offer search filters so that users can focus in on what they are looking for. The outer element takes class="ds-filter".

Light theme

Dark theme

Invoke the dark theme on any component by applying class="ds-dark" to a container element.

Markup

<aside class="ds-filter" aria-labelledby="filter-label">
  <div class="ds-filter-cluster">
    <ul>
      <li id="filter-label" class="ds-filter-label" aria-hidden="true">Filter:</li>
      <li><a href="?all" aria-current="true">All</a></li>
      <li><a href="?ready">Ready for data entry</a></li>
    </ul>
  </div>
  <details>
    <summary>Advanced filters</summary>
    <div class="ds-advanced-filters">
      <div class="ds-filter-cluster">
        <ul aria-labelledby="adv-filter-label-1">
          <li id="adv-filter-label-1" class="ds-filter-label" aria-hidden="true">Advanced filter label:</li>
          <!-- filter option <li>s -->
        </ul>
      </div>
      <div class="ds-filter-cluster">
        <ul aria-labelledby="adv-filter-label-1">
          <li id="adv-filter-label-2" class="ds-filter-label" aria-hidden="true">Advanced filter label:</li>
          <!-- filter option <li>s -->
        </ul>
      </div>
      <div class="ds-filter-cluster">
        <ul aria-labelledby="adv-filter-label-1">
          <li id="adv-filter-label-3" class="ds-filter-label" aria-hidden="true">Advanced filter label:</li>
          <!-- filter option <li>s -->
        </ul>
      </div>
    </div>
  </details>
</aside>