You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tooltip should support a prop for placement, to begin with we can add support for
1. Cardinal Directions
top
bottom
left
right
2. Compound Directions
For offsets or alignment toward corners:
top-left / top-start
top-right / top-end
bottom-left / bottom-start
bottom-right / bottom-end
left-top / left-start
left-bottom / left-end
right-top / right-start
right-bottom / right-end
Tip: The "start" and "end" nomenclature pairs well with bidirectional (LTR/RTL) layouts.
Shall we consider something like this?
{position: "top",// Places the tooltip above the targetalignment: "start",// Aligns the tooltip to the leftstrategy: "auto",// Adjusts position based on viewport space}
Note: We use Floating UI - If I recall correctly, most of these placements are already supported by the library https://floating-ui.com/docs/tooltip
The text was updated successfully, but these errors were encountered:
🚀 Feature Request
Feature Description
Tooltip should support a prop for placement, to begin with we can add support for
1. Cardinal Directions
top
bottom
left
right
2. Compound Directions
For offsets or alignment toward corners:
top-left / top-start
top-right / top-end
bottom-left / bottom-start
bottom-right / bottom-end
left-top / left-start
left-bottom / left-end
right-top / right-start
right-bottom / right-end
Tip: The "start" and "end" nomenclature pairs well with bidirectional (LTR/RTL) layouts.
Shall we consider something like this?
Note: We use Floating UI - If I recall correctly, most of these placements are already supported by the library
https://floating-ui.com/docs/tooltip
The text was updated successfully, but these errors were encountered: