Search results

Label and Size in Blazor RadioButton component

This section explains the different sizes and labels.

Label

Radio Button caption can be defined by using the Label property. This reduces the manual addition of label for Radio Button. You can customize the label position before or after the Radio Button through the LabelPosition property.

@using Syncfusion.Blazor.Buttons

<SfRadioButton Label="Left Side Label" Name="position" LabelPosition="RadioLabelPosition.Before"></SfRadioButton><br />
<SfRadioButton Label="Right Side Label" Checked="true" Name="position" LabelPosition="RadioLabelPosition.After"></SfRadioButton>

Output be like

Radio Button Sample

Size

The different Radio Button sizes available are default and small. To reduce the size of the default Radio Button to small, set the CssClass property to e-small.

@using Syncfusion.Blazor.Buttons

<SfRadioButton Label="Small" Name="size" checked="true" CssClass="e-small"></SfRadioButton><br />
<SfRadioButton Label="Default" Name="size"></SfRadioButton>

Output be like

Radio Button Sample

See Also

Contents
Contents