Search results

Tooltip for Button in Blazor Button component

03 Aug 2021 / 1 minute to read

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

Copied to clipboard
@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

Button Sample