Skip to content

@remix-run/ui/anchor · Interface

View Source

AnchorPoint

Summary

Viewport coordinates used as an anchor instead of an element.

Signature

interface AnchorPoint {
  height?: number
  width?: number
  x: number
  y: number
}

Properties

height

Anchor rectangle height in pixels (defaults to 0).

width

Anchor rectangle width in pixels (defaults to 0).

x

Horizontal position in viewport pixels, such as PointerEvent.clientX.

y

Vertical position in viewport pixels, such as PointerEvent.clientY.