Out of the box, React Aria's tooltips don't support a position prop relative to the trigger, unlike their popover hook.
It seems that Spectrum handles this by introducing an additional Spectrum-specific layer for position calculation, thus it'd be something we need to also implement by hand.
Use Cases:
When a tooltip is embedded in a hidden overflow container (e.g. ScrollArea) the tooltip may be hidden
When we want to avoid a tooltip from covering content directly below the target e.g. for icons in an action bar ribbon.
Out of the box, React Aria's tooltips don't support a position prop relative to the trigger, unlike their popover hook.
It seems that Spectrum handles this by introducing an additional Spectrum-specific layer for position calculation, thus it'd be something we need to also implement by hand.
Use Cases:
ScrollArea
) the tooltip may be hidden