NavGroup

OverviewExamplesPropertiesSlotsEventsCSS PropertiesDependenciesUsageIntegration

Navigation group includes all the actions or items in a single group and is used for grouping items into related categories.

Loading...

Properties

PropertyAttribute Description TypeDefault
headingheadingHeading and accessible label for the nav groupstring | undefined

Slots

Slot name Description
Default slotThe default slot used for the nav items.
EventDetail TypeDescription
toggleNordEventDispatched whenever a nav item's state changes between open and closed.
activateNordEventDispatched whenever a nav item has been marked as active

CSS Properties

CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.

PropertyDescriptionDefault
--n-nav-group-heading-displayControls the display of the group's heading. Set to none to hide it — useful for a slot="subnav" group whose heading repeats the parent item's label inline; the heading is still shown in the rail flyout where it titles the projected list.block

Usage

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

Do

  • 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 use for grouping other types of content.

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 .

Was this page helpful?

Yes No

We use this feedback to improve our documentation.