Sidebar

The Sidebar component is used to contain navigation, or groups of navigations.

Centered Element

Add the StackItemCenter (MY="auto") parameter to the element you want in the middle.

TypeDefault Value
<NVSidebar>
  <NVNav Vertical Level="1" Color="primary">
    <a href="#">lead link</a>
    <a href="#">lead link</a>
    <a href="#">lead link</a>
  </NVNav>
  
  <NVNav StackItemCenter Vertical Level="1" Color="primary">
    <a href="#">center link</a>
    <a href="#">center link</a>
    <a href="#">center link</a>
  </NVNav>
  
  <NVNav Vertical Level="1" Color="primary">
    <a href="#">tail link</a>
    <a href="#">tail link</a>
    <a href="#">tail link</a>
  </NVNav>
</NVSidebar>

Lead Element

Add the StackItemLead (or MB="auto") parameter to the element you want in the lead.

TypeDefault Value
<NVSidebar>
  <NVNav StackItemLead Vertical Level="1" Color="primary">
    <a href="#">lead link</a>
    <a href="#">lead link</a>
    <a href="#">lead link</a>
  </NVNav>
    
  <NVNav Vertical Level="1" Color="primary">
    <a href="#">link</a>
    <a href="#">link</a>
    <a href="#">link</a>
  </NVNav>
</NVSidebar>

Tail Element

To put an element as tail add the StackItemTail (or MT="auto") parameter to the element you want in tail.

TypeDefault Value
<NVSidebar>
  <NVNav Vertical Level="1" Color="primary">
    <a href="#">link</a>
    <a href="#">link</a>
    <a href="#">link</a>
  </NVNav>
    
  <NVNav StackItemTail Vertical Level="1" Color="primary">
    <a href="#">tail link</a>
    <a href="#">tail link</a>
    <a href="#">tail link</a>
  </NVNav>
</NVSidebar>