MatRadioButton

Buttons communicate an action a user can take. They are typically placed throughout your UI, in places like dialogs, forms, cards, and toolbars.

Name Type Description
TValue Generic argument any
Attributes Dictionary<String,Object> Gets or sets a collection of additional attributes that will be applied to the created element.
ChildContent RenderFragment Child content of MatRadioButton
Class String Specifies one or more classnames for an DOM element.
Disabled Boolean
Id String
Label String
RefBack ForwardRef
Style String Specifies an inline style for an DOM element.
Value TValue
Ref ElementReference Returned ElementRef reference for DOM element.
MatRadioGroup

Name Type Description
TValue Generic argument any
Attributes Dictionary<String,Object> Gets or sets a collection of additional attributes that will be applied to the created element.
ChildContent RenderFragment Child content of MatRadioGroup
Class String Specifies one or more classnames for an DOM element.
GroupName String
Id String
Items IEnumerable<TValue>
ItemTemplate RenderFragment<TValue>
RefBack ForwardRef
Style String Specifies an inline style for an DOM element.
ValidationDisabled Boolean
Value TValue Gets or sets the value of the input. This should be used with two-way binding.
ValueChanged EventCallback<TValue> Gets or sets a callback that updates the bound value.
ValueExpression Expression<Func<TValue>> Gets or sets an expression that identifies the bound value.
Ref ElementReference Returned ElementRef reference for DOM element.
Example
Gender
Selected value:

Items:

Items with ItemTemplate:

arrow_forward
arrow_forward
arrow_forward
arrow_forward
Custom group name
You can specify a group name for multiple MatRadioGroups.
This is useful when the MatRadioButtons can't all be children of the same MatRadioGroup. The below radio button is grouped with the ones above.
Custom Class

Car Items:

Car Items with ItemTemplate:

Enum
If you like MatBlazor, please put a star on GitHub.