Soenneker.Blazor.Interops.Floating
11.0.148
Prefix Reserved
dotnet add package Soenneker.Blazor.Interops.Floating --version 11.0.148
NuGet\Install-Package Soenneker.Blazor.Interops.Floating -Version 11.0.148
<PackageReference Include="Soenneker.Blazor.Interops.Floating" Version="11.0.148" />
<PackageVersion Include="Soenneker.Blazor.Interops.Floating" Version="11.0.148" />
<PackageReference Include="Soenneker.Blazor.Interops.Floating" />
paket add Soenneker.Blazor.Interops.Floating --version 11.0.148
#r "nuget: Soenneker.Blazor.Interops.Floating, 11.0.148"
#:package Soenneker.Blazor.Interops.Floating@11.0.148
#addin nuget:?package=Soenneker.Blazor.Interops.Floating&version=11.0.148
#tool nuget:?package=Soenneker.Blazor.Interops.Floating&version=11.0.148
Soenneker.Blazor.Interops.Floating
A small shared loader for the browser builds of Floating UI Core and Floating UI DOM. It makes the FloatingUICore and FloatingUIDOM JavaScript globals available to other Blazor interop libraries.
This package does not expose computePosition or render a tooltip, popover, or floating window by itself. Application code looking for a ready-made component should use a higher-level package such as Soenneker.Blazor.Floating.Tooltips.
Installation
dotnet add package Soenneker.Blazor.Interops.Floating
Registration
using Soenneker.Blazor.Interops.Floating.Registrars;
builder.Services.AddFloatingUiInteropAsScoped();
AddFloatingInteropAsScoped() is retained as an alias for the same registration.
Initialize the browser dependencies
Inject IFloatingUiInterop into the component or interop service that needs the JavaScript globals, then initialize after browser interop is available:
@using Soenneker.Blazor.Interops.Floating.Abstract
@inject IFloatingUiInterop FloatingUi
@code {
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
await FloatingUi.Initialize(useCdn: false);
}
}
With useCdn: true (the default), pinned Floating UI scripts are loaded from jsDelivr with integrity checks. With false, the package's static web assets are loaded instead. The scoped loader initializes once, so all consumers in the same scope should use the same source choice; the first successful call determines it.
Initialization is safe to call repeatedly and concurrently. Cancellation stops a pending caller but does not unload scripts already added to the page. Disposing the scoped service releases its .NET initialization resources; browser globals remain on the page.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Asyncs.Initializers (>= 11.0.135)
- Soenneker.Blazor.Utils.ResourceLoader (>= 11.0.1821)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Soenneker.Blazor.Interops.Floating:
| Package | Downloads |
|---|---|
|
Soenneker.Blazor.Floating.Tooltips
A Blazor interop library using the modern library, floating-ui, for tooltips |
|
|
Soenneker.Bradix.Suite
Radix-style UI primitives, built for Blazor. |
|
|
Soenneker.Blazor.Floating.Windows
A Blazor UI element for a drag and drop, overlayed window |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.148 | 488 | 11/4/2026 |
| 11.0.147 | 345 | 11/3/2026 |
| 11.0.146 | 415 | 11/3/2026 |
| 11.0.145 | 154 | 11/3/2026 |
| 11.0.144 | 377 | 11/3/2026 |
| 11.0.143 | 101 | 11/3/2026 |
| 11.0.142 | 113 | 11/3/2026 |
| 11.0.141 | 706 | 11/3/2026 |
| 11.0.140 | 258 | 11/3/2026 |
| 11.0.139 | 266 | 11/2/2026 |
| 11.0.138 | 330 | 11/2/2026 |
| 11.0.137 | 443 | 11/2/2026 |
| 11.0.136 | 3,095 | 10/26/2026 |
| 11.0.134 | 242 | 10/26/2026 |
| 11.0.133 | 116 | 10/26/2026 |
| 11.0.132 | 98 | 10/26/2026 |
| 11.0.131 | 293 | 10/26/2026 |
| 11.0.130 | 98 | 10/26/2026 |
| 4.0.129 | 4,748 | 10/15/2026 |
| 4.0.128 | 143 | 10/15/2026 |
Updated Soenneker.Blazor.Utils.ResourceLoader to 11.0.1821