# Top Bar

> Source: https://design.nanatec.co.ke/components/top-bar/
> The bar across the top of an app, with places for a title, search, notifications and the account menu. It stays on screen while the page scrolls.

The top bar holds what every page of an app needs within reach: a way back to the
navigation, search, and the signed-in user. It has three places. The start holds a sidebar
trigger, a title or a breadcrumb. The middle holds search. The end holds notifications, a
theme toggle and the account menu. The middle stretches, so the end always sits at the far
edge, whether or not there is a middle.

## Preview

## Installation

Put content in the `start` and `end` slots; anything without a slot goes in the middle.

```html
<nana-top-bar>
  <nana-sidebar-trigger slot="start"></nana-sidebar-trigger>
  <nana-input type="search" aria-label="Search"></nana-input>
  <nana-icon-button slot="end" name="bell" label="Notifications"></nana-icon-button>
  <nana-dropdown slot="end">…</nana-dropdown>
</nana-top-bar>
```

`sticky` keeps the bar at the top, on by default. `start` and `end` are snippets, and
children fill the middle. Other attributes, such as `aria-label`, go on the `header`.
