Gets the style for positioning an overlay based on the specified position.
const topLeftStyle = getOverlayPosition({ position: "topLeft" });console.log(topLeftStyle);// Output: { top: 0, left: 0 }const bottomRightStyle = getOverlayPosition({ position: "bottomRight" });console.log(bottomRightStyle);// Output: { bottom: 0, right: 0 } Copy
const topLeftStyle = getOverlayPosition({ position: "topLeft" });console.log(topLeftStyle);// Output: { top: 0, left: 0 }const bottomRightStyle = getOverlayPosition({ position: "bottomRight" });console.log(bottomRightStyle);// Output: { bottom: 0, right: 0 }
Configuration specifying the overlay position.
Gets the style for positioning an overlay based on the specified position.
Example