Search Bar
Learn how to create a search bar and combine an option filter.
Usage
To create a search bar, add the .search-bar
class to a container,
then wrap a search filed and a button inside.
<div class="search-bar">
<div class="fm fm-text">
<input type="search" name="keywords" placeholder="Search anything...">
</div>
<button class="btn btn-ico btn-primary">
<i class="ico ico-search"></i>
</button>
</div>
Option Filter
If you need an option filter in the search bar, prepend a form dropdown or a select field into the search bar container like the below example.
<div class="search-bar">
<div class="fm-dropdown dropdown-absolute">
<div class="fm fm-select" data-auto="false"><input></div>
<div class="dropdown-menu">
<div class="dropdown-items">
<div class="btns-y">
<div class="btn-radio btn-hollow-primary">
<input type="radio" checked id="option-video" name="search_option" value="video">
<label for="option-video">Videos</label>
</div>
<div class="btn-radio btn-hollow-primary">
<input type="radio" name="search_option" id="option-picture" value="picture">
<label for="option-picture">Pictures</label>
</div>
</div>
</div>
</div>
</div>
<div class="fm fm-text">
<input type="search" name="keywords" placeholder="E.g., James Bond">
</div>
<button class="btn btn-primary">Search</button>
</div>