NavToggle

OverviewExamplesPropertiesMethodsDependenciesUsageIntegration

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.

Loading...

Methods

Method nameParameters Description
focus(options?: FocusOptions) => voidoptions: An object which controls aspects of the focusing process.Programmatically move focus to the component.
blur() => voidN/AProgrammatically remove focus from the component.
click() => voidN/AProgrammatically simulates a click on the component.

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 .

Was this page helpful?

Yes No

We use this feedback to improve our documentation.