![]() |
VOOZH | about |
dotnet add package Soenneker.Blazor.Floating.Tooltips --version 4.0.563
NuGet\Install-Package Soenneker.Blazor.Floating.Tooltips -Version 4.0.563
<PackageReference Include="Soenneker.Blazor.Floating.Tooltips" Version="4.0.563" />
<PackageVersion Include="Soenneker.Blazor.Floating.Tooltips" Version="4.0.563" />Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Floating.Tooltips" />Project file
paket add Soenneker.Blazor.Floating.Tooltips --version 4.0.563
#r "nuget: Soenneker.Blazor.Floating.Tooltips, 4.0.563"
#:package Soenneker.Blazor.Floating.Tooltips@4.0.563
#addin nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=4.0.563Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=4.0.563Install 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
Modern Blazor tooltips powered by Floating UI.
Soenneker.Blazor.Floating.Tooltips is a Blazor component library that integrates with Floating UI to provide position-aware, customizable, and interactive tooltips with a C# API.
dotnet add package Soenneker.Blazor.Floating.Tooltips
Register the service:
using Soenneker.Blazor.Floating.Tooltips.Registrars;
builder.Services.AddFloatingTooltipAsScoped();
Add the namespace where you use the components:
@using Soenneker.Blazor.Floating.Tooltips
@using Soenneker.Blazor.Floating.Tooltips.Enums
@using Soenneker.Blazor.Floating.Tooltips.Options
Basic tooltip with plain text:
<FloatingTooltip Text="Hello tooltip!">
<button class="btn">Hover me</button>
</FloatingTooltip>
Tooltip with options and event callbacks:
<FloatingTooltip Text="This is an interactive tooltip"
Placement="FloatingTooltipPlacement.Top"
Animate="true"
ShowArrow="true"
Interactive="true"
OnShow="HandleShow"
OnHide="HandleHide"
Theme="FloatingTooltipTheme.Dark">
<span class="text-muted">Hover over me</span>
</FloatingTooltip>
@code {
private void HandleShow() => Console.WriteLine("Tooltip shown");
private void HandleHide() => Console.WriteLine("Tooltip hidden");
}
Rich content with TooltipContent:
<FloatingTooltip>
<TooltipContent>
<div class="p-2">
<strong>Smart Tooltip</strong><br />
Rich content goes here.
</div>
</TooltipContent>
<button class="btn btn-primary">Hover me</button>
</FloatingTooltip>
You can set options through FloatingTooltipOptions:
@using Soenneker.Blazor.Floating.Tooltips.Enums
@using Soenneker.Blazor.Floating.Tooltips.Options
<FloatingTooltip Text="Configured tooltip" Options="_options">
<button>Hover me</button>
</FloatingTooltip>
@code {
private readonly FloatingTooltipOptions _options = new()
{
Animate = true,
ShowArrow = true,
Theme = FloatingTooltipTheme.Light,
MaxWidth = 250,
ManualTrigger = false,
UseCdn = true
};
}
Or set the same values inline:
<FloatingTooltip Text="Inline options"
Animate="true"
Theme="FloatingTooltipTheme.Dark"
ShowArrow="true">
<button>Hover me</button>
</FloatingTooltip>
UseCdn defaults to true. When set to false, the library loads its bundled static web assets from _content/Soenneker.Blazor.Floating.Tooltips/..., which works with Blazor base paths such as GitHub Pages project sites.
Use @ref to control a tooltip manually:
<FloatingTooltip @ref="_tooltip"
Text="Controlled manually"
ManualTrigger="true">
<button @onclick="ToggleTooltip">Toggle tooltip</button>
</FloatingTooltip>
@code {
private FloatingTooltip? _tooltip;
private async Task ToggleTooltip()
{
if (_tooltip is not null)
await _tooltip.Toggle();
}
}
Available methods:
await tooltip.Show();
await tooltip.Hide();
await tooltip.Toggle();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.563 | 0 | 6/19/2026 |
| 4.0.562 | 0 | 6/19/2026 |
| 4.0.560 | 0 | 6/18/2026 |
| 4.0.558 | 23 | 6/18/2026 |
| 4.0.556 | 44 | 6/17/2026 |
| 4.0.555 | 41 | 6/17/2026 |
| 4.0.554 | 41 | 6/17/2026 |
| 4.0.553 | 44 | 6/17/2026 |
| 4.0.552 | 45 | 6/17/2026 |
| 4.0.550 | 65 | 6/16/2026 |
| 4.0.548 | 113 | 6/16/2026 |
| 4.0.547 | 95 | 6/13/2026 |
| 4.0.546 | 99 | 6/11/2026 |
| 4.0.545 | 102 | 6/11/2026 |
| 4.0.544 | 90 | 6/11/2026 |
| 4.0.543 | 97 | 6/10/2026 |
| 4.0.542 | 135 | 6/10/2026 |
| 4.0.540 | 96 | 6/10/2026 |
| 4.0.539 | 94 | 6/10/2026 |
| 4.0.537 | 95 | 6/9/2026 |
Update dependency Soenneker.Lepton.Suite to 4.0.26 (#1492)