Soenneker.Blazor.Floating.Tooltips 11.0.858

Prefix Reserved
dotnet add package Soenneker.Blazor.Floating.Tooltips --version 11.0.858
                    
NuGet\Install-Package Soenneker.Blazor.Floating.Tooltips -Version 11.0.858
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Blazor.Floating.Tooltips" Version="11.0.858" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Floating.Tooltips" Version="11.0.858" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Floating.Tooltips" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Blazor.Floating.Tooltips --version 11.0.858
                    
#r "nuget: Soenneker.Blazor.Floating.Tooltips, 11.0.858"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Blazor.Floating.Tooltips@11.0.858
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=11.0.858
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=11.0.858
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Blazor.Floating.Tooltips

A Blazor tooltip component positioned with Floating UI, with collision handling, delayed hover behavior, rich content, and manual control.

Installation

dotnet add package Soenneker.Blazor.Floating.Tooltips

Register the scoped interop service:

using Soenneker.Blazor.Floating.Tooltips.Registrars;

builder.Services.AddFloatingTooltipAsScoped();

Add these namespaces to _Imports.razor:

@using Soenneker.Blazor.Floating.Tooltips
@using Soenneker.Blazor.Floating.Tooltips.Enums
@using Soenneker.Blazor.Floating.Tooltips.Options

Basic tooltip

<FloatingTooltip Text="Creates a copy"
                 Placement="FloatingTooltipPlacement.Top"
                 ShowDelay="300">
    <button type="button" aria-label="Copy invoice">Copy</button>
</FloatingTooltip>

The first child element is the positioning anchor. When the wrapper contains multiple elements, add data-tooltip-anchor to the element that should anchor the tooltip.

Tooltips should supplement an accessible label, not replace it: hover content is not reliably available to keyboard, touch, or assistive-technology users.

Rich, interactive content

<FloatingTooltip Placement="FloatingTooltipPlacement.Bottom"
                 Interactive="true"
                 MaxWidth="320">
    <TooltipContent>
        <div>
            <strong>Keyboard shortcuts</strong>
            <div>Save: Ctrl+S</div>
        </div>
    </TooltipContent>

    <button type="button">Shortcuts</button>
</FloatingTooltip>

Use either Text or TooltipContent; setting both throws an InvalidOperationException. Interactive keeps the tooltip open while its content is hovered.

Options

Inline parameters override values supplied through Options:

<FloatingTooltip Text="Saved"
                 Options="_defaults"
                 Theme="FloatingTooltipTheme.Success">
    <button type="button">Save</button>
</FloatingTooltip>

@code {
    private readonly FloatingTooltipOptions _defaults = new()
    {
        Placement = FloatingTooltipPlacement.Right,
        Animate = true,
        ShowArrow = true,
        ShowDelay = 150,
        HideDelay = 100,
        MaxWidth = 240,
        UseCdn = false
    };
}

Available placements are Top, Bottom, Left, and Right. Themes are Dark, Light, Info, Success, Warning, and Error. Configuration is applied when the tooltip is created; use @key to recreate the component when its configuration must change at runtime.

UseCdn defaults to true. Set it to false to load the packaged Floating UI scripts; the tooltip stylesheet is always loaded from the package.

Manual control

<FloatingTooltip @ref="_tooltip"
                 Text="Copied"
                 ManualTrigger="true">
    <button type="button" @onclick="Copy">Copy</button>
</FloatingTooltip>

@code {
    private FloatingTooltip? _tooltip;

    private async Task Copy()
    {
        // Copy the value, then show confirmation.
        await _tooltip!.Show();
    }
}

Show(), Hide(), and Toggle() control a manual tooltip. OnShow and OnHide run when visibility actually changes, after any configured delay.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.858 63 11/4/2026
11.0.857 72 11/3/2026
11.0.856 59 11/3/2026
11.0.855 73 11/3/2026
11.0.854 65 11/3/2026
11.0.853 78 11/3/2026
11.0.852 79 11/3/2026
11.0.851 79 11/3/2026
11.0.849 69 11/3/2026
11.0.848 78 11/3/2026
11.0.846 76 11/3/2026
11.0.844 74 11/3/2026
11.0.842 82 11/3/2026
11.0.841 81 11/3/2026
11.0.840 85 11/2/2026
11.0.839 91 11/2/2026
11.0.838 86 11/2/2026
11.0.837 90 11/2/2026
11.0.836 93 11/2/2026
11.0.835 95 10/29/2026
Loading failed

Updated Soenneker.Blazor.Interops.Floating to 11.0.148