Toolbar
Examples
Base
To render toolbar, use the class chi-toolbar
.
This HTML Blueprint requires JavaScript.
You may use your own solution, or use Chi's vanilla JavaScript solution,
Chi.js.
<div class="chi-toolbar">
<div class="chi-toolbar__header">
<div class="chi-toolbar__start">
<div class="chi-toolbar__search">
<div class="chi-form__item">
<chi-search-input size="lg" id="example__base"></chi-search-input>
</div>
</div>
<div class="chi-toolbar__filters">
<div class="chi-toolbar__filters-desktop">
<div class="chi-form__item">
<select class="chi-select -lg" id="example-ba1">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item">
<select class="chi-select -lg" id="example-ba2">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
<div class="chi-toolbar__filters-mobile">
<button class="chi-button -lg -icon -flat chi-drawer__trigger" id="drawer-trigger-b1" data-target="#drawer-1" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
</div>
</div>
<div class="chi-toolbar__end">
<div class="chi-toolbar__actions">
<div class="chi-toolbar__actions-desktop">
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-arrow-to-bottom"></i>
</div>
</button>
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-refresh"></i>
</div>
</button>
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-settings"></i>
</div>
</button>
</div>
<div class="chi-toolbar__actions-mobile">
<button class="chi-button -lg -icon -flat chi-drawer__trigger" id="drawer-trigger-b2" data-target="#drawer-2" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-more-vert"></i>
</div>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Drawer -->
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -left -menu -position--absolute" id="drawer-1">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Filters</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2 -py--3">
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba11">Label</label>
<select class="chi-select" id="example-ba11">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba12">Label</label>
<select class="chi-select" id="example-ba12">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba13">Label</label>
<select class="chi-select" id="example-ba13">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba14">Label</label>
<select class="chi-select" id="example-ba14">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
</div>
<div class="-d--flex -justify-content--center -pb--2">
<button class="chi-button -primary -lg -uppercase -px--4">Apply</button>
<button class="chi-button -primary -outline -lg -bg--white -uppercase -px--4 -ml--2">Cancel</button>
</div>
</div>
</div>
</div>
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -right -menu -position--absolute" id="drawer-2">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Actions</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2">
<ul class="-no-style">
<li class="-text--md">Download data</li>
<div class="chi-divider"></div>
<li class="-text--md">Refresh results</li>
<div class="chi-divider"></div>
</ul>
</div>
</div>
</div>
</div>
<!-- Javascript -->
<script>
chi.drawer(document.getElementById('drawer-trigger-b1'));
chi.drawer(document.getElementById('drawer-trigger-b2'));
</script>
Base with ribbon
This HTML Blueprint requires JavaScript.
You may use your own solution, or use Chi's vanilla JavaScript solution,
Chi.js.
<div class="chi-toolbar">
<div class="chi-toolbar__header">
<div class="chi-toolbar__start">
<div class="chi-toolbar__search">
<div class="chi-form__item">
<chi-search-input size="lg" id="example__base-1"></chi-search-input>
</div>
</div>
<div class="chi-toolbar__filters">
<div class="chi-toolbar__filters-desktop">
<div class="chi-form__item">
<select class="chi-select -lg" id="example-ba3">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item">
<select class="chi-select -lg" id="example-ba4">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
<div class="chi-toolbar__filters-mobile">
<button class="chi-button -lg -icon -flat chi-drawer__trigger" id="drawer-trigger-br1" data-target="#drawer-1" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
</div>
</div>
<div class="chi-toolbar__end">
<div class="chi-toolbar__actions">
<div class="chi-toolbar__actions-desktop">
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-arrow-to-bottom"></i>
</div>
</button>
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-refresh"></i>
</div>
</button>
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-settings"></i>
</div>
</button>
</div>
<div class="chi-toolbar__actions-mobile">
<button class="chi-button -lg -icon -flat chi-drawer__trigger" id="drawer-trigger-br2" data-target="#drawer-2" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-more-vert"></i>
</div>
</button>
</div>
</div>
</div>
</div>
<div class="chi-toolbar__ribbon">
<div class="chi-toolbar__start">
<i class="chi-icon icon-arrow-down -xs"></i>
<div class="chi-toolbar__results">
<span class="chi-toolbar__label">Search Results </span>
<span>(1-40 of 78)</span>
</div>
<div class="chi-divider -vertical"></div>
<chi-link href="#" size="md">Save View</chi-link>
</div>
<div class="chi-toolbar__end">
<button class="chi-button -lg -icon -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
</div>
</div>
<!-- Drawer -->
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -left -menu -position--absolute" id="drawer-1">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Filters</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2 -py--3">
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba11">Label</label>
<select class="chi-select" id="example-ba11">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba12">Label</label>
<select class="chi-select" id="example-ba12">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba13">Label</label>
<select class="chi-select" id="example-ba13">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba14">Label</label>
<select class="chi-select" id="example-ba14">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
</div>
<div class="-d--flex -justify-content--center -pb--2">
<button class="chi-button -primary -lg -uppercase -px--4">Apply</button>
<button class="chi-button -primary -outline -lg -bg--white -uppercase -px--4 -ml--2">Cancel</button>
</div>
</div>
</div>
</div>
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -right -menu -position--absolute" id="drawer-2">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Actions</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2">
<ul class="-no-style">
<li class="-text--md">Download data</li>
<div class="chi-divider"></div>
<li class="-text--md">Refresh results</li>
<div class="chi-divider"></div>
</ul>
</div>
</div>
</div>
</div>
<!-- Javascript -->
<script>
chi.drawer(document.getElementById('drawer-trigger-br1'));
chi.drawer(document.getElementById('drawer-trigger-br2'));
</script>
Portal
This HTML Blueprint requires JavaScript.
You may use your own solution, or use Chi's vanilla JavaScript solution,
Chi.js.
<div class="chi-toolbar -portal">
<div class="chi-toolbar__header">
<div class="chi-toolbar__start">
<div class="chi-toolbar__search">
<div class="chi-form__item">
<chi-search-input portal="portal" size="lg" id="example__base-3"></chi-search-input>
</div>
</div>
<div class="chi-divider -vertical"></div>
<div class="chi-toolbar__filters">
<div class="chi-toolbar__filters-desktop">
<div class="chi-form__item">
<select class="chi-select -lg -portal" id="example-ba5">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-divider -vertical"></div>
<div class="chi-form__item">
<select class="chi-select -lg -portal" id="example-ba6">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
<div class="chi-toolbar__filters-mobile">
<button class="chi-button -portal -icon -primary -flat chi-drawer__trigger" id="drawer-trigger-bp1" data-target="#drawer-1" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
</div>
</div>
<div class="chi-toolbar__end">
<div class="chi-toolbar__actions">
<div class="chi-toolbar__actions-desktop">
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-arrow-to-bottom"></i>
</div>
</button>
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-refresh"></i>
</div>
</button>
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-settings"></i>
</div>
</button>
</div>
<div class="chi-toolbar__actions-mobile">
<button class="chi-button -portal -icon -primary -flat chi-drawer__trigger" id="drawer-trigger-bp2" data-target="#drawer-2" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-more-vert"></i>
</div>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Drawer -->
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -left -portal -menu -position--absolute" id="drawer-1">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Filters</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2 -py--3">
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba11">Label</label>
<select class="chi-select" id="example-ba11">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba12">Label</label>
<select class="chi-select" id="example-ba12">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba13">Label</label>
<select class="chi-select" id="example-ba13">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba14">Label</label>
<select class="chi-select" id="example-ba14">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
</div>
<div class="-d--flex -justify-content--center -pb--2">
<button class="chi-button -primary -lg -uppercase -px--4">Apply</button>
<button class="chi-button -primary -outline -lg -bg--white -uppercase -px--4 -ml--2">Cancel</button>
</div>
</div>
</div>
</div>
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -right -portal -menu -position--absolute" id="drawer-2">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Actions</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2">
<ul class="-no-style">
<li class="-text--md">Download data</li>
<div class="chi-divider"></div>
<li class="-text--md">Refresh results</li>
<div class="chi-divider"></div>
</ul>
</div>
</div>
</div>
</div>
<!-- Javascript -->
<script>
chi.drawer(document.getElementById('drawer-trigger-bp1'));
chi.drawer(document.getElementById('drawer-trigger-bp2'));
</script>
Portal with ribbon
This HTML Blueprint requires JavaScript.
You may use your own solution, or use Chi's vanilla JavaScript solution,
Chi.js.
<div class="chi-toolbar -portal">
<div class="chi-toolbar__header">
<div class="chi-toolbar__start">
<div class="chi-toolbar__search">
<div class="chi-form__item">
<chi-search-input portal="portal" size="lg" id="example__base-4"></chi-search-input>
</div>
</div>
<div class="chi-divider -vertical"></div>
<div class="chi-toolbar__filters">
<div class="chi-toolbar__filters-desktop">
<div class="chi-form__item">
<select class="chi-select -lg -portal" id="example-ba9">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-divider -vertical"></div>
<div class="chi-form__item">
<select class="chi-select -lg -portal" id="example-ba10">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
<div class="chi-toolbar__filters-mobile">
<button class="chi-button -portal -icon -primary -flat chi-drawer__trigger" id="drawer-trigger-brp1" data-target="#drawer-1" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-filter"></i>
</div>
</button>
</div>
</div>
</div>
<div class="chi-toolbar__end">
<div class="chi-toolbar__actions">
<div class="chi-toolbar__actions-desktop">
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-arrow-to-bottom"></i>
</div>
</button>
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-refresh"></i>
</div>
</button>
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-settings"></i>
</div>
</button>
</div>
<div class="chi-toolbar__actions-mobile">
<button class="chi-button -portal -icon -primary -flat chi-drawer__trigger" id="drawer-trigger-brp2" data-target="#drawer-2" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-more-vert"></i>
</div>
</button>
</div>
</div>
</div>
</div>
<div class="chi-toolbar__ribbon">
<div class="chi-toolbar__start">
<i class="chi-icon icon-arrow-down -xs"></i>
<div class="chi-toolbar__results">
<span class="chi-toolbar__label">Search Results </span>
<span>(1-40 of 78)</span>
</div>
<div class="chi-divider -vertical"></div>
<chi-link href="#" size="md">Save View</chi-link>
</div>
<div class="chi-toolbar__end">
<button class="chi-button -portal -icon -primary -flat" aria-label="Button action">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
</div>
</div>
<!-- Drawer -->
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -left -portal -menu -position--absolute" id="drawer-1">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Filters</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2 -py--3">
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba11">Label</label>
<select class="chi-select" id="example-ba11">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba12">Label</label>
<select class="chi-select" id="example-ba12">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba13">Label</label>
<select class="chi-select" id="example-ba13">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
<div class="chi-form__item -mb--2">
<label class="chi-label" for="example-ba14">Label</label>
<select class="chi-select" id="example-ba14">
<option value="">Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</div>
</div>
<div class="-d--flex -justify-content--center -pb--2">
<button class="chi-button -primary -lg -uppercase -px--4">Apply</button>
<button class="chi-button -primary -outline -lg -bg--white -uppercase -px--4 -ml--2">Cancel</button>
</div>
</div>
</div>
</div>
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div class="chi-drawer -right -portal -menu -position--absolute" id="drawer-2">
<div class="chi-drawer__header">
<span class="chi-drawer__title">Actions</span>
<button class="chi-button -icon -close" aria-label="Close">
<div class="chi-button__content">
<i class="chi-icon icon-x"></i>
</div>
</button>
</div>
<div class="chi-drawer__content -px--2">
<ul class="-no-style">
<li class="-text--md">Download data</li>
<div class="chi-divider"></div>
<li class="-text--md">Refresh results</li>
<div class="chi-divider"></div>
</ul>
</div>
</div>
</div>
</div>
<!-- Javascript -->
<script>
chi.drawer(document.getElementById('drawer-trigger-brp1'));
chi.drawer(document.getElementById('drawer-trigger-brp2'));
</script>