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
<PackageReference Include="Soenneker.Blazor.Floating.Tooltips" Version="11.0.858" />
<PackageVersion Include="Soenneker.Blazor.Floating.Tooltips" Version="11.0.858" />
<PackageReference Include="Soenneker.Blazor.Floating.Tooltips" />
paket add Soenneker.Blazor.Floating.Tooltips --version 11.0.858
#r "nuget: Soenneker.Blazor.Floating.Tooltips, 11.0.858"
#:package Soenneker.Blazor.Floating.Tooltips@11.0.858
#addin nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=11.0.858
#tool nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=11.0.858
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Blazor.Extensions.EventCallback (>= 11.0.474)
- Soenneker.Blazor.Extensions.IJSObjectReferences (>= 11.0.2)
- Soenneker.Blazor.Interops.Floating (>= 11.0.148)
- Soenneker.Lepton.Suite (>= 11.0.136)
- Soenneker.Utils.Json (>= 11.0.2779)
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 |
Updated Soenneker.Blazor.Interops.Floating to 11.0.148