HTML Attribute Support in Blazor Button Component

29 Dec 20231 minute to read

You can incorporate additional HTML attributes like disabled, value, name, and others into the SfButton by explicitly specifying them within the SfButton tag. If you configure both the property and equivalent HTML attribute, then the component will consider the property value.

The following example demonstrates how to set type attribute in the SfButton.

@using Syncfusion.Blazor.Buttons

<SfButton Content="Submit" title="Primary Button" type="submit"></SfButton>

Blazor Button with HTML Attribute