explorer
explorer copied to clipboard
[Task]: Improve Tooltip component
Task description
Improve the generic Tooltip component to have the following aspects:
- [ ] Add a custom hook that can give us dynamic cursor coordinates
- [ ] Tooltip position is dynamic based on cursor position
- [ ] Tooltip respects the "window edges", and doesn't go outside the screen or under another element
- [ ] (Optionally) Improve support for overriding "tooltip content" styles
tip: Look into ChartTooltip for logic of "following the cursor" or "window edges awareness"