Search results

Label and Size

This section explains the different sizes and labels.

Label

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

@using Syncfusion.EJ2.Blazor.Buttons

<EjsCheckBox Label="Left Side Label" LabelPosition="LabelPosition.Before" Checked="true"></EjsCheckBox><br />
<EjsCheckBox Label="Right Side Label" LabelPosition="LabelPosition.After" Checked="true"></EjsCheckBox>

Output be like

Button Sample

Size

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

@using Syncfusion.EJ2.Blazor.Buttons

<EjsCheckBox Label="Small" CssClass="e-small"></EjsCheckBox><br />
<EjsCheckBox Label="Default"></EjsCheckBox>

<style>
    .e-checkbox-wrapper {
        margin-top: 18px;
    }
</style>

Output be like

Button Sample

See Also

Contents
Contents