@carbon/charts
Version:
Carbon charting components
66 lines (63 loc) • 4.68 kB
HTML
<!--
Copyright IBM Corp. 2016, 2018
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree.
-->
<div class="bx--toolbar" data-toolbar>
<div class="bx--search bx--search--sm bx--toolbar-search" role="search" data-search data-toolbar-search>
<label for="search__input" class="bx--label">Search</label>
<input type="text" class="bx--search-input" id="search__input" placeholder="Search">
<button class="bx--toolbar-search__btn" aria-label="Toolbar search">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--search-magnifier" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M15 14.3L10.7 10c1.9-2.3 1.6-5.8-.7-7.7S4.2.7 2.3 3 .7 8.8 3 10.7c2 1.7 5 1.7 7 0l4.3 4.3.7-.7zM2 6.5C2 4 4 2 6.5 2S11 4 11 6.5 9 11 6.5 11 2 9 2 6.5z"></path></svg>
</button>
<button class="bx--search-close bx--search-close--hidden" title="Clear search
input" aria-label="Clear search input">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M12 4.7l-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z"></path></svg>
</button>
</div>
<div data-overflow-menu class="bx--overflow-menu" tabindex="0" aria-label="List of options">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--overflow-menu__icon bx--toolbar-filter-icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M15 4h-2.1c-.2-1.1-1.2-2-2.4-2s-2.2.9-2.4 2H1v1h7.1c.2 1.1 1.2 2 2.4 2s2.2-.9 2.4-2H15V4zm-4.5 2C9.7 6 9 5.3 9 4.5S9.7 3 10.5 3s1.5.7 1.5 1.5S11.3 6 10.5 6zM1 12h2.1c.2 1.1 1.2 2 2.4 2s2.2-.9 2.4-2H15v-1H7.9c-.2-1.1-1.2-2-2.4-2s-2.2.9-2.4 2H1v1zm4.5-2c.8 0 1.5.7 1.5 1.5S6.3 13 5.5 13 4 12.3 4 11.5 4.7 10 5.5 10z"></path></svg>
<ul class="bx--overflow-menu-options">
<li class="bx--toolbar-menu__title">FILTER BY</li>
<li class="bx--toolbar-menu__option">
<input id="filter-option-1" class="bx--checkbox" type="checkbox" value="filter-option-1" name="checkbox" data-floating-menu-primary-focus>
<label for="filter-option-1" class="bx--checkbox-label">Filter option 1</label>
</li>
<li class="bx--toolbar-menu__option">
<input id="filter-option-2" class="bx--checkbox" type="checkbox" value="filter-option-2" name="checkbox">
<label for="filter-option-2" class="bx--checkbox-label">Filter option 2</label>
</li>
<li class="bx--toolbar-menu__option">
<input id="filter-option-3" class="bx--checkbox" type="checkbox" value="filter-option-3" name="checkbox">
<label for="filter-option-3" class="bx--checkbox-label">Filter option 3</label>
</li>
</ul>
</div>
<div data-overflow-menu class="bx--overflow-menu" tabindex="0" aria-label="List of options">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--overflow-menu__icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="3" r="1"></circle><circle cx="8" cy="8" r="1"></circle><circle cx="8" cy="13" r="1"></circle></svg>
<ul class="bx--overflow-menu-options">
<li class="bx--overflow-menu-options__option">
<button type="button" class="bx--overflow-menu-options__btn">Refresh table</button>
</li>
<hr class="bx--toolbar-menu__divider" />
<li class="bx--toolbar-menu__title">ROW HEIGHT</li>
<fieldset data-row-height class="bx--radio-button-group">
<legend class="bx--visually-hidden">Select table row height</legend>
<li class="bx--toolbar-menu__option">
<input id="short-rows" class="bx--radio-button" type="radio" value="short" name="radio" checked data-floating-menu-primary-focus>
<label for="short-rows" class="bx--radio-button__label">
<span class="bx--radio-button__appearance"></span>
Short
</label>
</li>
<li class="bx--toolbar-menu__option">
<input id="tall-rows" class="bx--radio-button" type="radio" value="tall" name="radio">
<label for="tall-rows" class="bx--radio-button__label">
<span class="bx--radio-button__appearance"></span>
Tall
</label>
</li>
</fieldset>
</ul>
</div>
</div>