Add a header to label sections of actions and/or dividers in any dropdown menu.
<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
<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>
<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.