• HTML & CSS
  • Angular
  • Collapse
Getting started
  • Welcome
  • Install guide
Layouts
  • Containers
  • Dividers
  • Elevation
  • Flexbox
  • Grid
  • Pages
  • Sections
Styles
  • Colours
  • Typography
Helpers
  • Responsiveness
  • Scrollable
  • Spacing
  • Text
  • Other
Elements
  • Badges
  • Buttons
  • Icons
  • Tables
Components
  • Accordions
  • Alerts
  • Avatars
  • Breadcrumbs
  • Cards
  • Dropdowns
  • Forms
  • Lists & List Group
  • Modals
  • Meta Data
  • Nav
  • Pagination
  • Progress Timeline
  • Sidebar / Drawer
  • Snackbars & Toasts
  • Steppers
  • Tabs
  • Toggle
  • Toolbars
  • Tooltips
Organisms
  • Panel Header
Templates
  • Panel
Other
  • Downloads
  • Changelog

Dropdown

Contextual overlay for displaying lists of links or custom components.


Contextual menu

      
<div>
  <div class="hx-dropdown is-open">
    <button class="hx-button hx-button-gray hx-button-dropdown" type="button">
      Dropdown button
    </button>
    <div class="hx-dropdown-menu">
      <a class="hx-dropdown-item" href="#">Action</a>
      <a class="hx-dropdown-item" href="#">Another action</a>
      <a class="hx-dropdown-item" href="#">Something else here</a>
    </div>
  </div>
</div>

<br /><br /><br /><br /><br />
          
    
Action Another action Something else here





Contextual menu with icons

      
<div>
  <div class="hx-dropdown is-open">
    <button class="hx-button hx-button-gray hx-button-dropdown" type="button">
      Dropdown button
    </button>
    <div class="hx-dropdown-menu hx-dropdown-icon">
    <div class="hx-dropdown-header">Actions</div>
      <a class="hx-dropdown-item" href="#"><i class="hx-icon icon-clock-outline"></i> Book appointment</a>
      <a class="hx-dropdown-item" href="#"><i class="hx-icon icon-doctor-outline"></i> Start consult</a>
       <div class="hx-dropdown-divider"></div>
      <a class="hx-dropdown-item" href="#"><i class="hx-icon icon-send"></i> Send letter</a>
    </div>
  </div>
</div>

<br /><br /><br /><br /><br /><br /><br /><br />
          
    
Actions
Book appointment Start consult
Send letter








Grouped contextual menu

      
<div>
  <p>Add a header to label sections of actions and/or dividers in any dropdown menu.</p>
  <div class="hx-flex hx-flex-justify-center">
  <div class="hx-dropdown is-open mr-4">
    <button class="hx-button hx-button-gray hx-button-dropdown" type="button">
      Dropdown button
    </button>
    <div class="hx-dropdown-menu">
      <div class="hx-dropdown-header">Dropdown header</div>
      <a class="hx-dropdown-item" href="#">Action</a>
      <a class="hx-dropdown-item" href="#">Another action</a>
      <div class="hx-dropdown-divider"></div>
      <a class="hx-dropdown-item" href="#">Action</a>
      <a class="hx-dropdown-item" href="#">Another action</a>
    </div>
  </div>
  <div class="hx-dropdown is-open ml-4">
    <button class="hx-button hx-button-gray hx-button-dropdown" type="button">
      Dropdown button
    </button>
    <div class="hx-dropdown-menu">
      <div class="hx-dropdown-header">Sort By</div>
      <a class="hx-dropdown-item is-active" href="#"><div class="hx-flex hx-flex-align-center"><i class="hx-icon icon-caret-up"></i>Ascending</div></a>
      <a class="hx-dropdown-item" href="#"><div class="hx-flex hx-flex-align-center"><i class="hx-icon icon-caret-down"></i>Descending</div></a>

      <div class="hx-dropdown-divider"></div>
      <div class="hx-dropdown-header">Filter <a href="">clear filters</a></div>
      <div class="hx-flex hx-flex-column pl-4 pr-4 mt-4">

          <div class="hx-input-group">
              <div class="hx-input-control mb-0">
                  <input id="mhrFilterDateFrom" class="hx-input" type="text" required>
                  <label class="hx-label">From</label>
                  <div class="hx-help">&nbsp;</div>
              </div>
              <i id="fromDateCalendar" class="hx-icon icon-calendar-outline"></i>
          </div>
          <div class="hx-input-group" id="toContainer">
              <div class="hx-input-control mb-0">
                  <input id="mhrFilterDateTo" class="hx-input" type="text" required>
                  <label class="hx-label">To</label>
                  <div class="hx-help">&nbsp;</div>
              </div>
              <i id="toDateCalendar" class="hx-icon icon-calendar-outline"></i>
          </div>
      </div>
    </div>
  </div>
  </div>
</div>

<br /><br /><br /><br /><br /><br /><br />
<br>
<br>
<br>
<br>
<br>
<br>
<br>
          
    

Add a header to label sections of actions and/or dividers in any dropdown menu.

Dropdown header
Action Another action
Action Another action
Sort By
Ascending
Descending
Filter clear filters
 
 














Position

      
<div>
  <p>Position menu <code>.is-dropup</code>, <code>.is-left</code>, <code>.is-right</code>. Default is bottom left</p>
  <div class="hx-dropdown is-dropup is-open" style="margin-top:12rem;">
    <button class="hx-button hx-button-gray hx-button-dropdown" type="button">
      Dropdown button
    </button>
    <div class="hx-dropdown-menu">
      <div class="hx-dropdown-header">Dropdown header</div>
      <a class="hx-dropdown-item" href="#">Action</a>
      <a class="hx-dropdown-item" href="#">Another action</a>
      <div class="hx-dropdown-divider"></div>
      <a class="hx-dropdown-item" href="#">Action</a>
      <a class="hx-dropdown-item" href="#">Another action</a>
    </div>
  </div>
</div>

          
    

Position menu .is-dropup, .is-left, .is-right. Default is bottom left

Dropdown header
Action Another action
Action Another action

Limit width and/or height

      
<div>
  <div class="hx-dropdown is-open">
    <button class="hx-button hx-button-gray hx-button-dropdown" type="button">
      Dropdown button
    </button>
    <div class="hx-dropdown-menu has-limited-width has-limited-height">
      <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 1</a>
      <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 2</a>
       <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 3</a>
      <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 4</a>
       <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 5</a>
      <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 6</a>
       <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 7</a>
      <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 8</a>
       <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 9</a>
      <a class="hx-dropdown-item is-text-ellipsed" href="#" title="Action 10 is really reaally really really reaally really really reaally really long">Action 10 is really reaally really really reaally really really reaally really long</a>
       <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 11</a>
      <a class="hx-dropdown-item is-text-ellipsed" href="#">Action 12</a>
    </div>
  </div>
</div>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
          
    
Action 1 Action 2 Action 3 Action 4 Action 5 Action 6 Action 7 Action 8 Action 9 Action 10 is really reaally really really reaally really really reaally really long Action 11 Action 12















Custom

      
<div>
  <p>Add any component within. No padding, no margins.<br>Styling should be controlled by the component.</p>
  <div class="hx-dropdown is-open">
    <button class="hx-button hx-button-gray hx-button-dropdown" type="button">
      Dropdown button
    </button>
    <div class="hx-dropdown-menu">
      <h1 class="hx-title">Custom Component</h1>
      <h2 class="hx-subtitle">Supports any type of content</h2>
      <hr>
      <table class="table">
        <thead>
        <tr>
          <th>Col 1</th>
          <th>Col 2</th>
          <th>Col 3</th>
          <th>Col 4</th>
        </tr>
        </thead>
        <tbody>
        <tr>
          <td>Col 1</td>
          <td>Col 2</td>
          <td>Col 3</td>
          <td>Col 4</td>
          <td>Col 4</td>
        </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
          
    

Add any component within. No padding, no margins.
Styling should be controlled by the component.

Custom Component

Supports any type of content


Col 1 Col 2 Col 3 Col 4
Col 1 Col 2 Col 3 Col 4 Col 4