MudBlazor

MudField API

Pages

Properties

Name Type Default Description
Adornment
Adornment

Adornment.None

The Adornment if used. By default, it is set to None.
AdornmentIcon
String

null

Icon that will be used if Adornment is set to Start or End.
AdornmentText
String

null

Text that will be used if Adornment is set to Start or End, the Text overrides Icon.
ChildContent
RenderFragment

null

Child content of component.
Disabled
Boolean

False

If true, the input element will be disabled.
DisableUnderLine
Boolean

False

If true, the field will not have an underline.
Error
Boolean

False

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

null

The ErrorText that will be displayed if Error true
FullWidth
Boolean

False

If true, the field will take up the full width of its container.
HelperText
String

null

The HelperText will be displayed below the text field.
IconSize
Size

Size.Medium

Sets the Icon Size.
InnerPadding
Boolean

True

If true, the inner contents padding is removed.
Label
String

null

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

Margin.None

Will adjust vertical spacing.
Variant
Variant

Variant.Text

Variant can be Text, Filled or Outlined.
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

EventCallbacks

Name Type Description
OnAdornmentClick
EventCallback<MouseEventArgs>
Button click event if set and Adornment used.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙