Table of Contents

Class MudInputControl

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

Constructors

MudInputControl()

public MudInputControl()

Properties

ChildContent

Child content of component.

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

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

CounterText

The current character counter, displayed below the text field.

[Parameter]
public string? CounterText { get; set; }

Property Value

string

Disabled

If true, the input element will be disabled.

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

Property Value

bool

Error

If true, the label will be displayed in an error state.

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

Property Value

bool

ErrorId

The ErrorId that will be used by aria-describedby if Error true

[Parameter]
public string? ErrorId { get; set; }

Property Value

string

ErrorText

The ErrorText that will be displayed if Error true

[Parameter]
public string? ErrorText { get; set; }

Property Value

string

ForId

If string has value the label "for" attribute will be added.

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

Property Value

string

FullWidth

If true, the input will take up the full width of its container.

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

Property Value

bool

HelperClass

protected string HelperClass { get; }

Property Value

string

HelperContainer

protected string HelperContainer { get; }

Property Value

string

HelperId

The ID that will be used by aria-describedby if HelperText is provided.

[Parameter]
public string? HelperId { get; set; }

Property Value

string

HelperText

The HelperText will be displayed below the text field.

[Parameter]
public string? HelperText { get; set; }

Property Value

string

HelperTextOnFocus

If true, the helper text will only be visible on focus.

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

Property Value

bool

InputContent

Should be the Input

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

Property Value

RenderFragment

Label

If string has value the label text will be displayed in the input, and scaled down at the top if the input has value.

[Parameter]
public string? Label { get; set; }

Property Value

string

Margin

Will adjust vertical spacing.

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

Property Value

Margin

Required

If true, will apply mud-input-required class to the output div

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

Property Value

bool

Variant

Variant can be Text, Filled or Outlined.

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

Property Value

Variant

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder