Top bar is a header component that is always visible at the top of the interface. Top bar allows functionality such as search and contextual menus to be placed at the top of the interface.
Open in new window
Open in new window
Open in new window
View RTL
<nord-top-bar><nord-inputexpandlabel="Search"hide-labeltype="search"placeholder="Search"></nord-input><nord-dropdownslot="end"><nord-buttonvariant="plain"slot="toggle"aria-describedby="user-tooltip"><nord-avatarstyle="transform:translateY(-1px)"name="Ariel Salminen">AS</nord-avatar></nord-button><nord-avatarslot="header"size="s"name="Ariel Salminen">AS</nord-avatar><pslot="header"class="n-color-text-weak n-font-size-s"> Signed in as <spanclass="n-font-weight-active">Ariel Salminen</span></p><nord-dropdown-group><nord-dropdown-item>My profile</nord-dropdown-item><nord-dropdown-item>Account Settings</nord-dropdown-item><nord-dropdown-item>Change password</nord-dropdown-item></nord-dropdown-group><nord-dropdown-group><nord-dropdown-item> Keyboard commands<divslot="end"class="n-color-text-weaker n-font-size-xs">Cmd+K</div></nord-dropdown-item><nord-dropdown-item>Help & Support</nord-dropdown-item></nord-dropdown-group><nord-dropdown-item> Sign out<nord-iconslot="end"name="interface-logout"></nord-icon></nord-dropdown-item></nord-dropdown><nord-tooltipid="user-tooltip">Ariel Salminen</nord-tooltip></nord-top-bar>
<nord-top-bar><nord-inputexpandlabel="Search"hide-labeltype="search"placeholder="Search"></nord-input><nord-dropdownslot="end"align="start"position="block-end"><nord-buttonslot="toggle"variant="plain"aria-describedby="notifications-tooltip"><nord-iconname="navigation-notifications"size="m"color="rgba(255,255,255,0.85)"></nord-icon><divclass="n-counter"aria-hidden="true"style="position: absolute">12</div></nord-button><h2slot="header"class="n-typescale-l"> Notifications <spanclass="n-font-weight n-color-text-weaker">(12)</span></h2><nord-buttonslot="header-end"size="s"autofocus>Mark all as read</nord-button><nord-messageunreadhighlight> Ariel Salminen arrived to clinic with Pixie cat.<spanslot="footer">Just now at Nord Clinic</span></nord-message><nord-messageunread> New feature available! We’ve introduced a quick way to navigate between app views, actions, and more using a new command menu.<spanslot="footer">12 minutes ago</span></nord-message><nord-messageunread> Nina Hallikainen arrived to clinic with Durante dog.<spanslot="footer">20 minutes ago at Nord Clinic</span></nord-message><nord-messageunread> David Darnes arrived to clinic with Norfryd cat.<spanslot="footer">2 hours ago at Nord Clinic</span></nord-message><nord-messageunread> Nick Williams arrived to clinic with Moog cat.<spanslot="footer">2 hours ago at Nord Clinic</span></nord-message><nord-messageunread> Eric Habich arrived to clinic with Zero cat.<spanslot="footer">4 hours ago at Nord Clinic</span></nord-message><nord-messageunread> Elvin van Eede arrived to clinic with Amoeba cat.<spanslot="footer">12 hours ago at Nord Clinic</span></nord-message><nord-dropdown-item> See all notifications<nord-iconslot="end"name="arrow-right-long"></nord-icon></nord-dropdown-item></nord-dropdown><nord-tooltipid="notifications-tooltip">12 unread notifications</nord-tooltip><nord-dropdownslot="end"align="start"position="block-end"><nord-buttonslot="toggle"variant="plain"aria-describedby="tasks-tooltip"><nord-iconname="navigation-tasks"size="m"color="rgba(255,255,255,0.85)"></nord-icon><divclass="n-counter"aria-hidden="true"style="position: absolute">4</div></nord-button><h2slot="header"class="n-typescale-l">My tasks <spanclass="n-font-weight n-color-text-weaker">(4)</span></h2><nord-buttonslot="header-end"size="s"autofocus><nord-iconslot="start"size="xxs"name="interface-add-small"></nord-icon> Create task</nord-button><nord-messageunread> Make sure to ask details from John regarding yesterday’s patient who arrived late.<spanslot="footer">Finish by Wednesday, March 8</span></nord-message><nord-messageunread> Import new patients from Ocean Beach Clinic into the system.<spanslot="footer">Finish by Thursday, March 9</span></nord-message><nord-messageunread> Call David and ask about his cat’s wellbeing.<spanslot="footer">Finish by Thursday, March 9</span></nord-message><nord-messageunread> Call Anne and reschedule their visit.<spanslot="footer">Finish by Friday, March 10</span></nord-message><nord-dropdown-item> See all tasks<nord-iconslot="end"name="arrow-right-long"></nord-icon></nord-dropdown-item></nord-dropdown><nord-tooltipid="tasks-tooltip">4 unfinished tasks</nord-tooltip><nord-dropdownslot="end"><nord-buttonvariant="plain"slot="toggle"aria-describedby="user-tooltip"><nord-avatarstyle="transform:translateY(-1px)"name="Ariel Salminen">AS</nord-avatar></nord-button><nord-avatarslot="header"size="s"name="Ariel Salminen">AS</nord-avatar><pslot="header"class="n-color-text-weak n-font-size-s"> Signed in as <spanclass="n-font-weight-active">Ariel Salminen</span></p><nord-dropdown-group><nord-dropdown-item>My profile</nord-dropdown-item><nord-dropdown-item>Account Settings</nord-dropdown-item><nord-dropdown-item>Change password</nord-dropdown-item></nord-dropdown-group><nord-dropdown-group><nord-dropdown-item> Keyboard commands<divslot="end"class="n-color-text-weaker n-font-size-xs">Cmd+K</div></nord-dropdown-item><nord-dropdown-item>Help & Support</nord-dropdown-item></nord-dropdown-group><nord-dropdown-item> Sign out<nord-iconslot="end"name="interface-logout"></nord-icon></nord-dropdown-item></nord-dropdown><nord-tooltipid="user-tooltip">Ariel Salminen</nord-tooltip></nord-top-bar><style>@media(max-width: 768px){nord-top-bar nord-input[type="search"]:focus ~ nord-dropdown{display: none;}}</style>
<style>:root{/* CUSTOM ACCENT COLORS */--n-color-accent: #793aaf;--n-color-accent-secondary: #3b0075;}</style><nord-top-bar><nord-inputexpandlabel="Search"hide-labeltype="search"placeholder="Search"></nord-input><nord-dropdownslot="end"align="start"position="block-end"><nord-buttonslot="toggle"variant="plain"aria-describedby="notifications-tooltip"><nord-iconname="navigation-notifications"size="m"color="rgba(255,255,255,0.85)"></nord-icon><divclass="n-counter"aria-hidden="true"style="position: absolute">12</div></nord-button><h2slot="header"class="n-typescale-l"> Notifications <spanclass="n-font-weight n-color-text-weaker">(12)</span></h2><nord-buttonslot="header-end"size="s"autofocus>Mark all as read</nord-button><nord-messageunreadhighlight> Ariel Salminen arrived to clinic with Pixie cat.<spanslot="footer">Just now at Nord Clinic</span></nord-message><nord-messageunread> New feature available! We’ve introduced a quick way to navigate between app views, actions, and more using a new command menu.<spanslot="footer">12 minutes ago</span></nord-message><nord-messageunread> Nina Hallikainen arrived to clinic with Durante dog.<spanslot="footer">20 minutes ago at Nord Clinic</span></nord-message><nord-messageunread> David Darnes arrived to clinic with Norfryd cat.<spanslot="footer">2 hours ago at Nord Clinic</span></nord-message><nord-messageunread> Nick Williams arrived to clinic with Moog cat.<spanslot="footer">2 hours ago at Nord Clinic</span></nord-message><nord-messageunread> Eric Habich arrived to clinic with Zero cat.<spanslot="footer">4 hours ago at Nord Clinic</span></nord-message><nord-messageunread> Elvin van Eede arrived to clinic with Amoeba cat.<spanslot="footer">12 hours ago at Nord Clinic</span></nord-message><nord-dropdown-item> See all notifications<nord-iconslot="end"name="arrow-right-long"></nord-icon></nord-dropdown-item></nord-dropdown><nord-tooltipid="notifications-tooltip">12 unread notifications</nord-tooltip><nord-dropdownslot="end"align="start"position="block-end"><nord-buttonslot="toggle"variant="plain"aria-describedby="tasks-tooltip"><nord-iconname="navigation-tasks"size="m"color="rgba(255,255,255,0.85)"></nord-icon><divclass="n-counter"aria-hidden="true"style="position: absolute">4</div></nord-button><h2slot="header"class="n-typescale-l">My tasks <spanclass="n-font-weight n-color-text-weaker">(4)</span></h2><nord-buttonslot="header-end"size="s"autofocus><nord-iconslot="start"size="xxs"name="interface-add-small"></nord-icon> Create task</nord-button><nord-messageunread> Make sure to ask details from John regarding yesterday’s patient who arrived late.<spanslot="footer">Finish by Wednesday, March 8</span></nord-message><nord-messageunread> Import new patients from Ocean Beach Clinic into the system.<spanslot="footer">Finish by Thursday, March 9</span></nord-message><nord-messageunread> Call David and ask about his cat’s wellbeing.<spanslot="footer">Finish by Thursday, March 9</span></nord-message><nord-messageunread> Call Anne and reschedule their visit.<spanslot="footer">Finish by Friday, March 10</span></nord-message><nord-dropdown-item> See all tasks<nord-iconslot="end"name="arrow-right-long"></nord-icon></nord-dropdown-item></nord-dropdown><nord-tooltipid="tasks-tooltip">4 unfinished tasks</nord-tooltip><nord-dropdownslot="end"><nord-buttonvariant="plain"slot="toggle"aria-describedby="user-tooltip"><nord-avatarstyle="transform:translateY(-1px)"name="Ariel Salminen">AS</nord-avatar></nord-button><nord-avatarslot="header"size="s"name="Ariel Salminen">AS</nord-avatar><pslot="header"class="n-color-text-weak n-font-size-s"> Signed in as <spanclass="n-font-weight-active">Ariel Salminen</span></p><nord-dropdown-group><nord-dropdown-item>My profile</nord-dropdown-item><nord-dropdown-item>Account Settings</nord-dropdown-item><nord-dropdown-item>Change password</nord-dropdown-item></nord-dropdown-group><nord-dropdown-group><nord-dropdown-item> Keyboard commands<divslot="end"class="n-color-text-weaker n-font-size-xs">Cmd+K</div></nord-dropdown-item><nord-dropdown-item>Help & Support</nord-dropdown-item></nord-dropdown-group><nord-dropdown-item> Sign out<nord-iconslot="end"name="interface-logout"></nord-icon></nord-dropdown-item></nord-dropdown><nord-tooltipid="user-tooltip">Ariel Salminen</nord-tooltip></nord-top-bar><style>@media(max-width: 768px){nord-top-bar nord-input[type="search"]:focus ~ nord-dropdown{display: none;}}</style>
Slots
Slot name
Description
Default slot
Used for the main content of the top bar. We recommend placing your application’s global search functionality into this slot.
Don’t allow the user to set a top bar color that doesn’t provide enough contrast with the content.
Don’t allow the user to freely pick a hex code as the top bar color. Instead, offer a choice from a predefined palette of colors which provides sufficient contrast with the content. View an example.
Please see the Top Bar theming section in our theming documentation for detailed guidelines.
Theming Guidelines
Integration
For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.
Integration Guidelines
Troubleshooting
If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.