This section explains the different sizes and labels.
RadioButton caption can be defined by using the Label
property.
This reduces the manual addition of label for RadioButton. You can customize the label position before or after the
RadioButton through the LabelPosition
property.
@using Syncfusion.EJ2.Blazor.Buttons
<EjsRadioButton Label="Left Side Label" Name="position" LabelPosition="RadioLabelPosition.Before"></EjsRadioButton><br />
<EjsRadioButton Label="Right Side Label" Checked="true" Name="position" LabelPosition="RadioLabelPosition.After"></EjsRadioButton>
Output be like
The different RadioButton sizes available are default and small. To reduce the size of the default RadioButton to small,
set the CssClass
property to e-small
.
@using Syncfusion.EJ2.Blazor.Buttons
<EjsRadioButton Label="Small" Name="size" checked="true" CssClass="e-small"></EjsRadioButton><br />
<EjsRadioButton Label="Default" Name="size"></EjsRadioButton>
Output be like