Gets the style for positioning an overlay based on the specified position.
Contains the desired position for the overlay.
const topLeftPosition = getOverlayPosition({ position: 'topLeft' });// Output: { top: 0, left: 0 }const bottomRightPosition = getOverlayPosition({ position: 'bottomRight' });// Output: { bottom: 0, right: 0 } Copy
const topLeftPosition = getOverlayPosition({ position: 'topLeft' });// Output: { top: 0, left: 0 }const bottomRightPosition = getOverlayPosition({ position: 'bottomRight' });// Output: { bottom: 0, right: 0 }
Gets the style for positioning an overlay based on the specified position.