How to put search bar on top
Adding a search bar to the top of your web page can enhance user experience by making navigation easier. In this article, we'll explore several methods to achieve this using Bootstrap.
Basic search bar
A basic example with a simple button. You can place it anywhere you choose.
<div class="input-group">
<div class="form-outline" data-mdb-input-init>
<input type="search" id="form1" class="form-control" />
<label class="form-label" for="form1">Search</label>
</div>
<button type="button" class="btn btn-primary" data-mdb-ripple-init>
<i class="fas fa-search"></i>
</button>
</div>
// Initialization for ES Users
import { Input, Ripple, initMDB } from "mdb-ui-kit";
initMDB({ Input, Ripple });