Side Nav

Use Side Nav to render navigation items.

Use the side-nav-content slot to render a Side Nav Menu. See Side Nav Menu Item for more information on available configurations.

Dashboard Procedures Findings

Use the Side Nav Menu Group component inside a Side Nav Menu Item component to create a group of menu items. See Side Nav Menu Group for more information on available configurations.

Dashboard Procedures By Exam Type By Procedure Type BBPS Procedure Duration Total Endoscope Time Withdrawal Time Withdrawal Time Retroflexion Detection By Doctor Findings

Use a Side Nav Menu Section Label inside a Side Nav Menu to identify a group of related menu items.

Settings Application Settings Structured Terminology Facility Settings User Permissions Groups Roles Permissions Logs Activity Logs

Use the side-nav-header and side-nav-footer slots to render content above or blow the menu options. The footer content will stick to the bottom of the navigation.

Header Content
Dashboard Procedures Findings

You can listen for the sense-select event to determine which Side Nav Menu Item was clicked. The Side Nav Menu Item element will be exposed in event.detail.item.

Dashboard Procedures By Exam Type By Procedure Type BBPS Procedure Duration Total Endoscope Time Withdrawal Time Withdrawal Time Retroflexion Detection By Doctor Findings
import '@ods/components/web.side-nav';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
side-nav-headerContent region at the top of the side-nav.
side-nav-contentContent region of the side-nav.
side-nav-footerContent region at the bottom of the side-nav.

Parts

NameDescription
baseThe component's base wrapper.
side-nav-headerThe header region's wrapper at the top of the side-nav.
side-nav-contentThe content region's wrapper at the center of the side-nav.
side-nav-footerThe footer region's wrapper at the bottom of the side-nav.

Usage

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

Do

  • Use Section Labels to organize similar pages and groups
  • Match the Side Nav Menu Item labels with the page header breadcrumbs
  • Adhere to the fixed-width value of 280px

Dont

  • Use Section Labels within a Side Nav Menu Group
  • Mix terminology between Side Nav and Breadrcrumbs
  • Adjust the width of the Side Nav based on content or preference

The goal of a Side Nav is to offer the user a quick way to navigate around different pages within an application. They should not act as a “junk drawer” the way that a traditional Hamburger Menu is often utilized. Side Nav Menu Items within a Side Nav Menu need to be intentional and conservative, so as not to overwhelm the user with a long list of options. Use Side Nav Menu Section Label and Side Nav Group Menu Group to help organize sub content.

Keep in mind that the Side Nav Menu Items should match what is used in the Page Header breadcrumbs, and vice versa. See Breadcrumbs for more information.

Generic, succinct single-word labels are best here. First gather related navigation items under a section then determine the best term to use as the section label.

Do

  • Settings
  • Logs

Dont

  • Settings and User Permissions
  • Activity and System Logs

Short, 1-2 word labels that sum up the page content, and avoid action-based terms.

Do

  • Settings
  • Application Settings

Dont

  • Application Settings and Options
  • Settings and Options

A collection of pages can be grouped using a Side Nav Group Menu Group inside a Side Nav Menu Item . Try not to repeat terms used in the name of the group. Use short 1-2 word labels that sum up the page content, and avoid action-based terms.

Do

  • User Permissions

Dont

  • Permission for Users, Groups and Facilities

Search