title: Responsive navbar in UIKit 3?
body: <p>I've been migrating my website over to UIkit 3 instead of Bootstrap 4. But I've been stuck on the navbar for a while. Right now, my navbar is built in Bootstrap 4 and looks like this: </p>
  
  <p><a href="https://jsfiddle.net/eztwL9p7/1/" rel="noreferrer">https://jsfiddle.net/eztwL9p7/1/</a></p>
  
  <pre><code>&lt;nav class="navbar navbar-toggleable-sm  sticky-top navbar-light bg-faded"&gt;
    &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive"&gt;
      &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;div class="collapse navbar-collapse" id="navbarResponsive"&gt;
      &lt;a class="navbar-brand"&gt;brand&lt;/a&gt;
      &lt;ul class="navbar-nav mr-auto"&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link"&gt;Blog &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#"&gt;Contact&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#"&gt;Projects&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
      &lt;auth-partial&gt;
        &lt;ul class="nav navbar-nav"&gt;
          &lt;li class="nav-item float-xs-right"&gt;
            &lt;a href="#" class="nav-link"&gt;Log in&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/auth-partial&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>So it's just a normal navbar, but when the page is small enough, a toggle button appears and the items become a drop down list. I've been trying to migrate this to UIKit, but I don't see any option for this in their templates. If I understand it right, it seems like I have to make 2 navbars, one for the normal view and then a smaller one? </p>
  
  <p>The <a href="https://getuikit.com/docs/navbar#toggle-item" rel="noreferrer">Navbar documentation</a> suggests that the <code>.uk-navbar-toggle</code> class and the <code>.uk-navbar-toggle-icon</code> are added like below - resulting in a toggle icon - but without an expandable menu and also not able to hide specified menu items as Bootstrap can do.</p>
  
  <pre><code>&lt;nav class="uk-navbar uk-navbar-container uk-margin"&gt;
      &lt;div class="uk-navbar-left"&gt;
          &lt;a class="uk-navbar-toggle" uk-navbar-toggle-icon href="#"&gt;&lt;/a&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>The <a href="https://getuikit.com/docs/navbar#toggle-item" rel="noreferrer">Navbar documentation</a> recommends that the <a href="https://getuikit.com/docs/offcanvas" rel="noreferrer">Off-canvas component</a> (sidebar that slides in and out of the page) - or the <a href="https://getuikit.com/docs/modal" rel="noreferrer">Modal component</a> - but neither of these result in a Bootstrap-style toggle menu.</p>
  
  <p>Screenshots that show how the responsive navbar toggle / hide specified elements on smaller screens in Bootstrap:</p>
  
  <p><strong>Screen in normal size - all menu items are shown:</strong>
  <a href="https://i.stack.imgur.com/PSvkM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PSvkM.png" alt="enter image description here"></a></p>
  
  <p><strong>Screen in smaller size - some or all menu items are hidden:</strong>
  <a href="https://i.stack.imgur.com/asISY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/asISY.png" alt="enter image description here"></a></p>
  
  <p><strong>Screen in smaller size - pressing Menu displays menu items:</strong>
  <a href="https://i.stack.imgur.com/LpTeR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LpTeR.png" alt="enter image description here"></a></p>