Search results

HTML Attribute Support in Blazor Button component

HTML attribute support is given for button using HtmlAttributes property.

@using Syncfusion.Blazor.Buttons

<SfButton Content="@Content" HtmlAttributes="@submit"></SfButton>

@code {
    public string Content = "Submit";
    private Dictionary<string, object> submit = new Dictionary<string, object>()
     {
        { "type", "submit"}
    };
}

Output be like

Button Sample