UseFloatingOptions

Types

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

Properties

Link copied to clipboard

Object containing the reference and floating elements.

Link copied to clipboard

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

Link copied to clipboard
abstract val open: Boolean?

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

Link copied to clipboard
abstract val placement: Placement?

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

Link copied to clipboard
abstract val platform: Platform?

Object to interface with the current platform.

Link copied to clipboard
abstract val strategy: Strategy?

The strategy to use when positioning the floating element.

Link copied to clipboard
abstract 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).