Table of Contents

Class MudLink

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

Constructors

public MudLink()

Properties

Child content of the component.

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

Property Value

RenderFragment
protected string Classname { get; }

Property Value

string

The color of the link.

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

Property Value

Color

Defaults to Primary.

Prevents user interaction with the link.

[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }

Property Value

bool

Defaults to false.

The URL, which is the actual link.

[Parameter]
[Category("Behavior")]
public string? Href { get; set; }

Property Value

string

Defaults to null.

Occurs when the link has been clicked.

[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }

Property Value

EventCallback<MouseEventArgs>

Specifies where to open the link if Href is specified.

[Parameter]
[Category("Behavior")]
public string? Target { get; set; }

Property Value

string

Possible values: _blank | _self | _parent | _top | framename

Defaults to null.

Typography variant to use.

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

Property Value

Typo

Defaults to body1.

Applies a style of underline on the link.

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

Property Value

Underline

Defaults to Hover.

Methods

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder
protected Task OnClickHandler(MouseEventArgs ev)

Parameters

ev MouseEventArgs

Returns

Task