Nav

The navs component includes a list of links that users use to move between sections of the application. They are often used in the app bar of your application or in your sidebar.

Color

Set the color of the nav.

TypeDefault Value
stringnull
<Stak Vertical Gutter="4">
  <NVNav>
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
  <NVNav Color="primary">
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
  <NVNav Color="secondary">
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
  <NVNav Color="success">
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
  <NVNav Color="error">
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
</Stak>

Gutter

Set spacing between items in the nav.
Gutter apply an horizontal separation by default, but when Vertical is set to true, will apply a vertical separation between links.

TypeDefault Value
stringnull
<NVNav Gutter="1" Margin=". . 6">
  <NVLink IsActive Href="#">link 1</NVLink>
  <NVLink Href="#">link 2</NVLink>
  <NVLink Href="#">link 3</NVLink>
</NVNav>
<NVNav Vertical Gutter="1">
  <NVLink IsActive Href="#">link 1</NVLink>
  <NVLink Href="#">link 2</NVLink>
  <NVLink Href="#">link 3</NVLink>
</NVNav>

Level

Set the level of the nav.

TypeDefault Value
string1
<Stak Vertical Gutter="4">
  <NVNav Color="primary">
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
  <NVNav Level="2" Color="primary">
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
  <NVNav Level="3" Color="primary">
    <NVLink Href="#">link 1</NVLink>
    <NVLink Href="#">link 2</NVLink>
    <NVLink Href="#">link 3</NVLink>
  </NVNav>
</Stak>

Pad

Set spacing within links in the nav. If the value is set to 1, it will apply internally a ChildPadding="1 2" to the nav.

TypeDefault Value
stringnull
<NVNav Pad="5" Gutter="1" Margin=". . 6">
  <NVLink IsActive Href="#">link 1</NVLink>
  <NVLink Href="#">link 2</NVLink>
  <NVLink Href="#">link 3</NVLink>
</NVNav>

Pill

Set the shape of the nav to 'Pill'

TypeDefault Value
boolfalse
<NVNav Pill Gutter="1">
  <NVLink IsActive Href="#">link 1</NVLink>
  <NVLink Href="#">link 2</NVLink>
  <NVLink Href="#">link 3</NVLink>
</NVNav>

Square

Set the shape of the nav to 'Square'

TypeDefault Value
boolfalse
<NVNav Square Gutter="1">
  <NVLink IsActive Href="#">link 1</NVLink>
  <NVLink Href="#">link 2</NVLink>
  <NVLink Href="#">link 3</NVLink>
</NVNav>

Vertical

Will display the nav vertically. Will also change the Gutter axe.

TypeDefault Value
boolfalse
<NVNav Vertical Gutter="1">
  <NVLink IsActive Href="#">link 1</NVLink>
  <NVLink Href="#">link 2</NVLink>
  <NVLink Href="#">link 3</NVLink>
</NVNav>