MudField API

Pages
Properties
Name Type Default Description
Data
ChildContent
RenderFragment
null Child content of component.
Validation
Error
bool
False If true, the label will be displayed in an error state.
ErrorText
string
null The ErrorText that will be displayed if Error true
Behavior
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.
Disabled
bool
False If true, the input element will be disabled.
HelperText
string
null The HelperText will be displayed below the text field.
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.
Appearance
AdornmentColor
Color
Color.Default The color of the adornment if used. It supports the theme colors.
DisableUnderLine
bool
False If true, the field will not have an underline.
FullWidth
bool
False If true, the field will take up the full width of its container.
IconSize
Size
Size.Medium Sets the Icon Size.
InnerPadding
bool
True If true, the inner contents padding is removed.
Margin
Margin
Margin.None Will adjust vertical spacing.
Variant
Variant
Variant.Text Variant can be Text, Filled or Outlined.
Common
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.

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

An error has occurred. This application may no longer respond until reloaded. Reload 🗙