useFloating
Import
import { useFloating, floatingAvailableHeightVar, createFloatingAnchor } from '@feugene/granularity/composables/useFloating'Exports
UseFloatingPlacementtypetype UseFloatingPlacement = PlacementfloatingAvailableHeightVarconstconst floatingAvailableHeightVar = "--gr-floating-available-height"GrFloatingAnchorRectinterfaceinterface GrFloatingAnchorRectUseFloatingReferencetypetype UseFloatingReference = HTMLElement | VirtualElement | nullcreateFloatingAnchorfunctionfunction createFloatingAnchor(get: () => GrFloatingAnchorRect | null | undefined, options?:UseFloatingOptionsinterfaceinterface UseFloatingOptionsUseFloatingReturninterfaceinterface UseFloatingReturnuseFloatingfunctionfunction useFloating(reference: Ref<HTMLElement | null> | (() => UseFloatingReference), floatingEl: Ref<HTMLElement | null>, open: Ref<boolean>, options?: UseFloatingOptions): UseFloatingReturn
Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.
Source: @feugene/granularity 0.41.0, package.json#exports and dist/types