Tooltip for Button in Blazor Button Component

10 Aug 20211 minute to read

Tooltip can be shown on Button hover and it can be achieved by HtmlAttributes property.

@using Syncfusion.Blazor.Buttons

<SfButton Content="@Content" HtmlAttributes="@primButton" IsPrimary="true"></SfButton>

@code {
    public string Content = "Button";
    private Dictionary<string, object> primButton = new Dictionary<string, object>()
        { "title", "Primary Button"}

Output be like

Blazor Button displays ToolTip