MudBlazor

Community Support

Discord

GitHub Discussions

Tools and resources

TryMudBlazor

Templates

Sponsor

Open Collective


Switch to Blazor wasm
Toggle light/dark theme
GitHub repository
Toggle right-to-left/left-to-right

Community Support

Discord

GitHub Discussions

Tools and resources

TryMudBlazor

Templates

Sponsor

Open Collective

MudForm

API documentation.

Check out the Examples for this component.

Properties

Name Type Default Description
ChildContent RenderFragment null Child content of component.
IsValid Boolean True Validation status. True if the form is valid and without errors. This parameter is two-way bindable.
IsTouched Boolean False True if any field of the field was touched. This parameter is readonly.
ValidationDelay Int32 300 Validation debounce delay in milliseconds. This can help improve rendering performance of forms with real-time validation of inputs i.e. when textfields have Immediate="true"
SuppressRenderingOnValidation Boolean False When true, the form will not re-render its child contents on validation updates (i.e. when IsValid changes). This is an optimization which can be necessary especially for larger forms on older devices.
SuppressImplicitSubmission Boolean True When true, will not cause a page refresh on Enter if any input has focus. https://www.w3.org/TR/2018/SPSD-html5-20180327/forms.html#implicit-submission Usually this is not wanted, as it can cause a page refresh in the middle of editing a form. When the form is in a dialog this will cause the dialog to close. So by default we suppress it.
IsValidChanged EventCallback<Boolean> Raised when IsValid changes.
IsTouchedChanged EventCallback<Boolean> Raised when IsTouched changes.
Errors String[] Validation error messages
ErrorsChanged EventCallback<String[]>
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.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙