Class MudLink
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A clickable link which can navigate to a URL.
public class MudLink : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudLink
- Implements
- Inherited Members
- Extension Methods
Constructors
MudLink()
public MudLink()
Properties
ChildContent
The content within this 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
Disabled
Prevents user interaction with this link.
[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }
Property Value
Remarks
Defaults to false
.
Href
The URL to navigate to upon click.
[Parameter]
[Category("Behavior")]
public string? Href { get; set; }
Property Value
Remarks
Defaults to null
.
OnClick
Occurs when this link has been clicked.
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
Target
The browser frame to open this link when Href is specified.
[Parameter]
[Category("Behavior")]
public string? Target { get; set; }
Property Value
Remarks
Possible values include _blank
, _self
, _parent
, _top
, or a frame name.
Defaults to null
.
Typo
The typography variant to use.
[Parameter]
[Category("Appearance")]
public Typo Typo { get; set; }
Property Value
Remarks
Underline
Applies an underline to the link.
[Parameter]
[Category("Appearance")]
public Underline Underline { get; set; }
Property Value
Remarks
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnClickHandler(MouseEventArgs)
protected Task OnClickHandler(MouseEventArgs ev)