类型 OverlayPlacement
API 文档由 Go 源码生成,内容为英文。
type OverlayPlacement struct {
Side OverlaySide
Align OverlayAlign
// SideOffset is the gap between the anchor and the overlay; AlignOffset
// shifts the overlay along the anchor's edge.
SideOffset float32
AlignOffset float32
// Margin is the distance the overlay keeps from the viewport's edges.
Margin float32
}OverlayPlacement describes where an overlay goes relative to its anchor. It is the Positioner of Base UI's popups: side, align, and the two offsets.