Table of Contents

Class MudInputLabel

Namespace
MudBlazor
Assembly
MudBlazor.dll

A label which describes a MudInput<T> component.

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

Constructors

MudInputLabel()

public MudInputLabel()

Properties

ChildContent

The content within this label.

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Disabled

Prevents the user from interacting with this label.

[Parameter]
public bool Disabled { get; set; }

Property Value

bool

Remarks

Defaults to false.

Error

Displays this label in an error state.

[Parameter]
public bool Error { get; set; }

Property Value

bool

Remarks

Defaults to false.

ForId

For WCAG accessibility, the ID of the input component related to this label.

[Parameter]
public string ForId { get; set; }

Property Value

string

Remarks

Defaults to an empty string.

Margin

The amount of vertical spacing to apply.

[Parameter]
public Margin Margin { get; set; }

Property Value

Margin

Remarks

Defaults to None.

Variant

The display variant of this label.

[Parameter]
public Variant Variant { get; set; }

Property Value

Variant

Remarks

Defaults to Text.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder