Components/Cx Side Navigation
fd-input-group · 17 examples from SAP's documentation · Back to the gallery
About
The Side Navigation can display structures of up to three levels. In the Wide variant: - The first levels always shows an icon - If first-level items have children, they show the expand/collapse arrows - Second level items do not display an icon and are not indented - If second-level items have children, they show the expand/collapse arrows - Third level items do not display an icon and are indented by 2 rem (32px) In the Narrow variant: - The first levels always shows an icon - If first-level items have children, they show the expand/collapse arrows - If first-level items have children, and they are clicked, the popover displays the First-level item in bold letters, then the second level items in regular. - Second level items do not display an icon and are not indented - If second-level items have children, they show the expand/collapse arrows - Third level items do not display an icon and are indented by 2 rem (32px)
Cosy Wide With Icon, 1 Level
Cosy Wide Text Only, 1 Level
Important: This type of Side Navigation does not have Narrow variant.
Cosy Narrow Popover with Dynamic Width
Side Navigation can react dynamically to long label texts in navigational items. In such case the width of the Side Navigation is adapted by the longest label. The label does not wrap or truncate. Use the modifier class .fdx-side-nav--dynamic-width for Side Navigation with dynamic width.
Cosy Wide Text Only, 3 Levels
Important: This type of Side Navigation does not have Narrow variant.
Cosy Wide With Icons, 3 Levels, Collapse Only
Cosy Wide With Icons, 3 Levels, Navigation and Collapse
Compact Wide With Icons, Level 2 Collapsed
For compact Side Navigation apply the .fdx-side-nav--compact modifier class with .fdx-side-nav base class, and .fdx-nested-list--compact modifier class with .fdx-nested-list base class.
Compact Wide With Icons, Level 2 Collapsed, Navigation and Collapse
For compact Side Navigation apply the .fdx-side-nav--compact modifier class with .fdx-side-nav base class, and .fdx-nested-list--compact modifier class with .fdx-nested-list base class.
Cosy Narrow, Levels 2 and 3 in Popover Hidden
For Narrow variant of Side Navigation apply .fdx-side-nav--narrow modifier class to .fdx-side-nav base class.
Cosy Narrow with Vertical Overflow Behaviour, Levels 2 and 3 in Popover Hidden
CosyNarrowPopover
Level 1 Header
Level 1 Navigation
Cosy Narrow Popover with Dynamic Width
Side Navigation Popover can react dynamically to long label texts in navigational items. In such case the width of the Side Navigation Popover is adapted by the longest label. The label does not wrap or truncate. Use the modifier class .fdx-side-nav__popover-body--dynamic-width modifier class with .fdx-side-nav__popover-body base class for Side Navigation Popover with dynamic width.
CompactNarrow
For Narrow variant of Side Navigation in compact mode apply .fdx-side-nav--narrow and .fdx-side-nav--compact modifier classed to .fdx-side-nav base class.
Compact Narrow with Vertical Overflow Behaviour, Levels 2 and 3 in Popover Hidden
CompactNarrowPopover
Cosy Wide With Icon and Filter Integration, 1 Level
WrappingLongText
By default, side navigation will wrap long text into multiple lines if the width of the nav is not enough. Developers can modify this behaviour by adding .fdx-side-nav--single-line class modifier.