Class MudLink
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudLink : MudComponentBase, IComponent, IHandleAfterRender, IMudStateHasChanged, IHandleEvent
- Inheritance
-
MudLink
- Implements
- Inherited Members
- Extension Methods
Constructors
MudLink()
public MudLink()
Properties
ChildContent
Child content of the component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Color
The color of the link.
[Parameter]
[Category("Appearance")]
public Color Color { get; set; }
Property Value
Remarks
Defaults to Primary.
Disabled
Prevents user interaction with the link.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
Remarks
Defaults to false
.
Href
The URL, which is the actual link.
[Parameter]
[Category("Behavior")]
public string? Href { get; set; }
Property Value
Remarks
Defaults to null
.
OnClick
Occurs when the link has been clicked.
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
Target
Specifies where to open the link if Href is specified.
[Parameter]
[Category("Behavior")]
public string? Target { get; set; }
Property Value
Remarks
Possible values: _blank | _self | _parent | _top | framename
Defaults tonull
.
Typo
Typography variant to use.
[Parameter]
[Category("Appearance")]
public Typo Typo { get; set; }
Property Value
Remarks
Defaults to body1.
Underline
Applies a style of underline on the link.
[Parameter]
[Category("Appearance")]
public Underline Underline { get; set; }
Property Value
Remarks
Defaults to Hover.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnClickHandler(MouseEventArgs)
protected Task OnClickHandler(MouseEventArgs ev)