UseFloatingOptions

Types

Link copied to clipboard
external interface Elements<R : ReferenceElement>
Link copied to clipboard
typealias WhileElementsMounted<R> = (reference: R, floating: HTMLElement, update: () -> Unit) -> () -> Unit

Properties

Link copied to clipboard
abstract external val elements: UseFloatingOptions.Elements<R>?

Object containing the reference and floating elements.

Link copied to clipboard
abstract external val middleware: ReadonlyArray<Middleware?>?

Array of middleware objects to modify the positioning or provide data for rendering.

Link copied to clipboard
abstract external val open: Boolean?

The open state of the floating element to synchronize with the isPositioned value.

Link copied to clipboard
abstract external val placement: Placement?

Where to place the floating element relative to the reference element.

Link copied to clipboard
abstract external val platform: Platform?

Object to interface with the current platform.

Link copied to clipboard
abstract external val strategy: Strategy?

The strategy to use when positioning the floating element.

Link copied to clipboard
abstract external val transform: Boolean?

Whether to use transform for positioning instead of top and left (layout) in the floatingStyles object.

Link copied to clipboard

A callback invoked when both the reference and floating elements are mounted, and cleaned up when either is unmounted. This is useful for setting up event listeners (e.g. pass autoUpdate).