Provides the Floating UI positioning fallback for browsers without CSS Anchor Positioning support
provideFloatingFallback
Functioncommon/popover
projects/common/popover/floating-fallback.ts
Description#
Provides the Floating UI positioning fallback for browsers without CSS Anchor Positioning support.
The consumer must install @floating-ui/dom themselves - this library
never imports it directly, keeping the bundle at zero cost for modern browsers.
import { computePosition, flip, offset, shift } from '@floating-ui/dom';
// In app.config.ts or component providers:
providers: [
provideFloatingFallback(computePosition, [offset(8), flip(), shift()]),
]Signature#
provideFloatingFallback(computePosition: ComputePositionFn, middleware?)Parameters#
@parammiddleware?
Returns#
Provider