Table of Contents

Class MudNavMenu

Namespace
MudBlazor
Assembly
MudBlazor.dll
public class MudNavMenu : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudNavMenu
Implements
Inherited Members
Extension Methods

Constructors

MudNavMenu()

public MudNavMenu()

Properties

Bordered

If true, adds a border of the active NavLink, does nothing if variant outlined is used.

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

Property Value

bool

ChildContent

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

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Color

The color of the active NavLink.

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

Property Value

Color

Dense

If true, compact vertical padding will be applied to all navmenu items.

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

Property Value

bool

Margin

Adjust the vertical spacing between navlinks.

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

Property Value

Margin

Rounded

If true, default theme border-radius will be used on all navlinks.

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

Property Value

bool

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder