Don't want to learn Bootstrap classes? Go to Bootstrap builder for busy developers.

Bootstrap class: .navbar with form

<nav class="navbar navbar-light bg-light">
  <form class="form-inline">
    <input class="form-control mr-sm-2" type="text" placeholder="Search">
    <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  </form>
</nav>

Preview