Mudblazor
Toggle light/dark theme
GitHub repository
Toggle right-to-left/left-to-right

MudCheckBox<T>

API documentation.

Check out the Examples for this component.

Properties

Name Type Default Description
Color Color Color.Default The color of the component. It supports the theme colors.
Label String null If applied the text will be added to the component.
DisableRipple Boolean False If true, disables ripple effect.
Disabled Boolean False If true, the checkbox will be disabled.
ChildContent RenderFragment null Child content of component.
CheckedIcon String null Custom checked icon, leave null for default.
UncheckedIcon String null Custom unchecked icon, leave null for default.
IndeterminateIcon String null Custom indeterminate icon, leave null for default.
CheckedChanged EventCallback<T> Fired when Checked changes.
Checked T null The state of the component
Converter Converter<T, Nullable<Boolean>>
Required Boolean False If true, this form input is required to be filled out.
RequiredError String "Required" Set an error text that will be displayed if the input is not filled out but required!
ErrorText String null The ErrorText that will be displayed if Error true
Error Boolean False If true, the label will be displayed in an error state.
Validation Object null A validation func or a validation attribute. Supported types are: ]]> ... will output the standard error message "Invalid" if false ]]> ... outputs the result as error message, no error if null >]]> ... outputs all the returned error messages, no error if empty >]]> ... will output the standard error message "Invalid" if false >]]> ... outputs the result as error message, no error if null >>]]> ... outputs all the returned error messages, no error if empty System.ComponentModel.DataAnnotations.ValidationAttribute instances
For Expression<Func<T>> null Specify an expression which returns the model's field for which validation messages should be displayed. Currently only string fields are supported.
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 🗙