Skip to main content

SideNav

Library
UDS Base
Repository
github.com/telus/universal-design-system
Package
npmjs.com/package/@telus-uds/ds-allium
Package version
1.14.0
Loading...

Introduction

import { SideNav } from '@telus-uds/ds-allium'

A stacked, in-page navigation widget.

Guidance

  • Use in conjuntion with a large amount of educational / informational content
  • Allow the user to navigate between options frequently and efficiently

SideNav is typically used alongside long text content that is broken down into sections.

accordion prop

By default, only one SideNav panel may be open.

If the accordion prop is passed as false, any number of panels may be open at a time.

Loading...

Accessibility

Expanded item groups are marked with aria-expanded, while the active item is has an aria-selected attribute. Similar patterns are applied on the native platforms.

Platform considerations

The component is available on both native platforms and web.

Props

NameTypeDefaultDescription
accordionbooltrueIdentifies if only one 'SideNav.ItemsGroup' should be open at a time.
childrencomponentPropType(['Item', 'ItemsGroup'])Specifies the structure and links of the 'SideNav'. It may only consist of 'SideNav.Item' and 'SideNav.ItemsGroup'.
groupTokenscustom
itemTokenscustom
tokenscustomSystem tokens prop, see tokens for more details
variantobjectOf{}System variant prop, see variants for more details

Tokens

In exceptional circumstances, the following tokens can be passed to this component to override its default styles. Do not do this unless absolutely necessary. Read more about overriding styles.

View Tokens
Prop NameToken PropertyToken Type
tokensborderColorcolor
borderWidthborder
borderStyleborderStyle
itemTokensborderColorcolor
borderWidthborder
borderStyleborderStyle
paddingLeftsize
paddingRightsize
paddingTopsize
paddingBottomsize
justifyContentflexJustifyContent
colorcolor
accentOffsetsize
accentPaddingsize
accentWidthsize
accentBackgroundColorcolor
fontWeightfontWeight
fontNamefontName
fontSizefontSize
lineHeightlineHeight
backgroundColorcolor
groupTokensexpandDurationduration
collapseDurationduration
contentPaddingLeftsize
contentPaddingRightsize
contentPaddingTopsize
contentPaddingBottomsize
iconicon
iconColorcolor
iconGapsize
iconSizesize
iconPositionposition
justifyContentflexJustifyContent
verticalAlignverticalAlign

Figma

Variants

This component does not have any stylistic variants.

Feedback