Skip to content

[Feature request] [Tooltip] offset prop should accept an object with separate { x, y } offsets #6643

@benface

Description

@benface

Is your feature request related to a problem? Please describe.
It seems impossible to position a Tooltip the way I want, which is 10-20px away from the cursor horizontally but not vertically.

Describe the solution you'd like
If offset accepted an object of { x, y } offsets instead of just a number, I would set it to { x: 20, y: 0 }

Describe alternatives you've considered
Using offset={20} and translateY(-20px) in CSS, but that doesn't work when the tooltip is flipped vertically.

Additional context
Thank you!

Metadata

Metadata

Labels

enhancementEnhancement to a current APIfeature requestIssues that are feature requestsgood first issueIssues with this label are great for first time contributors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions