Table of Contents

Class MudNavMenu

Namespace
MudBlazor
Assembly
MudBlazor.dll

A list of navigation links with support for groups.

public class MudNavMenu : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudNavMenu
Implements
Inherited Members
Extension Methods

Constructors

MudNavMenu()

public MudNavMenu()

Properties

Bordered

Shows a border on the active MudNavLink.

[Parameter]
[Category("Appearance")]
public bool Bordered { get; set; }

Property Value

bool

Remarks

Defaults to false.

ChildContent

The content within this menu.

[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Remarks

Typically contains MudNavLink, MudNavGroup, MudText, and MudDivider components.

Classname

protected string Classname { get; }

Property Value

string

Color

The color of the active MudNavLink.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

Remarks

Defaults to Default.

Dense

Uses compact vertical padding to all MudNavLink items.

[Parameter]
[Category("Appearance")]
public bool Dense { get; set; }

Property Value

bool

Remarks

Defaults to false.
Will be overridden if Margin is not None.

Margin

The vertical spacing between MudNavLink items.

[Parameter]
[Category("Appearance")]
public Margin Margin { get; set; }

Property Value

Margin

Remarks

Defaults to None.

Rounded

Shows a rounded border for all MudNavLink items.

[Parameter]
[Category("Appearance")]
public bool Rounded { get; set; }

Property Value

bool

Remarks

Defaults to false in Rounded.
When true, the theme border-radius value will be used. Only takes affect if Bordered is true.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

See Also