Nav ToggleReady

Nav toggle is meant for hiding and showing the primary navigation. This component is used internally in the Layout component, but can also be used separate to further customize the behavior.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<nord-nav-toggle></nord-nav-toggle>

Methods

Method nameParametersDescription
focus(options?: FocusOptions) => voidoptions: An object which controls aspects of the focusing process.

Programmatically move focus to the component.

blur() => voidN/A

Programmatically remove focus from the component.

click() => voidN/A

Programmatically simulates a click on the component.

Localization

This component requires localization in a multi-lingual application. The following keys are required when registering a translation:

KeyDescription
label

Accessible label for the nav toggle button.

For full localization guidelines, please see Localization documentation.

Localization Guidelines


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 a tooltip with the toggle that’s labelled as Toggle navigation.
  • We recommend setting a keyboard shortcut that toggles the navigation.

Don’t


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.