NavigationReady

Navigation is used to display the primary navigation in the sidebar of an application. Navigation includes a list of links that users use to move between sections of the application.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<nord-navigation style="max-inline-size: 250px">
  <nord-dropdown slot="header" expand>
    <nord-button slot="toggle" expand>
      <nord-avatar slot="start" variant="square">B</nord-avatar>
      Bath Clinic
    </nord-button>
    <nord-dropdown-group heading="laura.williams@nordhealth.com">
      <nord-dropdown-item>
        <nord-avatar slot="start" size="s" variant="square">B</nord-avatar>
        Bath Clinic
        <nord-icon slot="end" name="interface-checked"></nord-icon>
      </nord-dropdown-item>
      <nord-dropdown-item>
        <nord-avatar slot="start" size="s" variant="square" style="--n-avatar-color: var(--n-color-status-success)">
          O
        </nord-avatar>
        Ocean Beach Clinic
      </nord-dropdown-item>
    </nord-dropdown-group>
    <nord-dropdown-group>
      <nord-dropdown-item>Add another clinic</nord-dropdown-item>
      <nord-dropdown-item>Customize style</nord-dropdown-item>
    </nord-dropdown-group>
    <nord-dropdown-item>Sign out from all clinics</nord-dropdown-item>
  </nord-dropdown>
  <nord-nav-group heading="Workspace">
    <nord-nav-item active icon="navigation-dashboard">Dashboard</nord-nav-item>
    <nord-nav-item icon="navigation-payments">Payments</nord-nav-item>
    <nord-nav-item icon="navigation-reports">Reports</nord-nav-item>
    <nord-nav-item icon="navigation-settings">Settings</nord-nav-item>
  </nord-nav-group>
</nord-navigation>

Slots

Slot nameDescription
Default slot

The main section of the sidebar, for holding nav components.

header

The top section of the sidebar.

CSS Properties

CSS Custom Properties provide more fine grain control over component presentation.

PropertyDescriptionDefault
--n-navigation-background-color

Controls the background color of the navigation element.

var(--n-color-nav-surface)

Dependencies

This component is internally dependent on the following components:


Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do #

  • Use for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.
  • Group navigation items into navigation groups based on related categories.
  • Use group headings to clarify the category of a section.
  • Use icons for all top level navigation items.

Don’t #

  • Don’t place a <nav> element inside the navigation component, as it already contains one internally.

Content guidelines #

When writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):

My tasks
My Tasks

Avoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:

Change theme
Change the theme

Avoid ending item labels in punctuation:

Switch user
Switch user.

Use as few words as possible to describe each item label:

Payments
Payments in your clinic

Avoid all caps for item labels and group titles:

Dashboard
DASHBOARD

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.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.