VOOZH about

URL: https://www.nuget.org/packages/Soenneker.Blazor.Floating.Tooltips/

⇱ NuGet Gallery | Soenneker.Blazor.Floating.Tooltips 4.0.563




👁 Image
Soenneker.Blazor.Floating.Tooltips 4.0.563

Prefix Reserved
dotnet add package Soenneker.Blazor.Floating.Tooltips --version 4.0.563
 
 
NuGet\Install-Package Soenneker.Blazor.Floating.Tooltips -Version 4.0.563
 
 
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="4.0.563" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Floating.Tooltips" Version="4.0.563" />
 
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 4.0.563
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Blazor.Floating.Tooltips, 4.0.563"
 
 
#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@4.0.563
 
 
#: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=4.0.563
 
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=4.0.563
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 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

<img src="https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png" alt="Logo" width="48"/> Soenneker.Blazor.Floating.Tooltips

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.

Open the demo site


Features

  • Position-aware and collision-resistant tooltip placement
  • Custom placements, show/hide delays, themes, and arrows
  • Interactive tooltip content
  • Manual show, hide, and toggle support from C#
  • Event callbacks for show and hide
  • Optional CDN loading for Floating UI scripts
  • Packaged static web assets for local script and stylesheet loading

Installation

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

Usage

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>

Options

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.


Programmatic Control

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. 
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
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
Loading failed

Update dependency Soenneker.Lepton.Suite to 4.0.26 (#1492)