Soenneker.Blazor.Floating.Tooltips 3.0.40

Prefix Reserved
dotnet add package Soenneker.Blazor.Floating.Tooltips --version 3.0.40
                    
NuGet\Install-Package Soenneker.Blazor.Floating.Tooltips -Version 3.0.40
                    
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="3.0.40" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Floating.Tooltips" Version="3.0.40" />
                    
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 3.0.40
                    
#r "nuget: Soenneker.Blazor.Floating.Tooltips, 3.0.40"
                    
#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.
#addin nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=3.0.40
                    
Install Soenneker.Blazor.Floating.Tooltips as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Floating.Tooltips&version=3.0.40
                    
Install Soenneker.Blazor.Floating.Tooltips 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

Logo Soenneker.Blazor.Floating.Tooltips

⚡ A modern Blazor interop library for Floating UI-powered tooltips

🧪 Click here to try the demo

Soenneker.Blazor.Floating.Tooltips is a fully featured Blazor component library that integrates with Floating UI to provide sleek, customizable, and highly interactive tooltips using a pure C# API.


✨ Features

  • ✅ Position-aware and collision-resistant tooltips
  • 🎯 Custom placements, delays, and themes
  • 🧲 Interactive and manually triggered tooltips
  • 🎨 Dark/light theming with optional arrows
  • 🔧 Full control via C# with event callbacks
  • 🪶 Lightweight with optional CDN usage
  • 🔁 Runtime toggle, show, and hide support
  • 💥 Optimized for performance and resilience

📦 Installation

dotnet add package Soenneker.Blazor.Floating.Tooltips

Register:

services.AddFloatingTooltipAsScoped();

🛠️ Usage

Basic example with plain string content:

<FloatingTooltip Text="Hello tooltip!">
    <button class="btn">Hover me</button>
</FloatingTooltip>

With full options and event handling:

<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!");
}

Using TooltipContent instead of Text:

<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 use the Options parameter or inline params:

Options = new FloatingTooltipOptions
{
    Animate = true,
    ShowArrow = true,
    Theme = FloatingTooltipTheme.Light,
    MaxWidth = 250,
    ManualTrigger = false,
    UseCdn = true
}

Or shorthand:

Animate="true" Theme="FloatingTooltipTheme.Dark"

🧩 Interop Methods

You can control tooltips programmatically via:

await tooltipRef.Show();
await tooltipRef.Hide();
await tooltipRef.Toggle();
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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
3.0.40 57 5/19/2025
3.0.39 47 5/18/2025
3.0.38 49 5/18/2025
3.0.37 211 5/15/2025
3.0.36 204 5/15/2025
3.0.35 200 5/15/2025
3.0.34 204 5/14/2025
3.0.33 202 5/13/2025
3.0.32 163 5/8/2025
3.0.31 125 5/8/2025
3.0.30 129 5/8/2025
3.0.29 125 5/8/2025
3.0.28 125 5/8/2025
3.0.27 125 5/8/2025
3.0.26 128 5/8/2025
3.0.25 126 5/8/2025
3.0.24 130 5/8/2025
3.0.23 131 5/7/2025
3.0.22 121 5/7/2025
3.0.21 122 5/7/2025
3.0.20 139 5/6/2025
3.0.19 119 5/6/2025
3.0.18 125 5/6/2025
3.0.17 122 5/5/2025
3.0.16 125 5/5/2025
3.0.15 124 5/5/2025
3.0.14 127 5/5/2025
3.0.13 128 5/5/2025
3.0.12 126 5/5/2025
3.0.11 134 5/1/2025
3.0.10 148 5/1/2025
3.0.9 129 5/1/2025
3.0.8 131 5/1/2025
3.0.7 153 4/29/2025
3.0.6 139 4/29/2025
3.0.5 88 4/27/2025
3.0.4 71 4/26/2025
3.0.3 137 4/12/2025
3.0.2 92 4/11/2025
3.0.1 87 4/11/2025