This would be an option, but you will have to do in "Save" the style, so that the search icon is in the color of the <input>
:
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<div class="col-sm-3 my-1">
<div class="input-group">
<input class="form-control" type="search" placeholder="Pesquisar" aria-label="Search" style="border-right: none;">
<div class="input-group-append">
<div class="input-group-text" style="background-color: #FFF"><i class="fas fa-search"></i></div>
</div>
</div>
</div>
Puts a
input-group-prepend
. Documentation link: https://getbootstrap.com/docs/4.1/components/forms/– LeAndrade