Skip to content

There is a way to have tooltip and popover on the same button ? #1449

Answered by segunadebayo
Theo-Rige asked this question in Q&A
Discussion options

You must be logged in to vote

Merging the props for the popover and tooltip trigger is the way to solve this. I believe Vue has a mergeProps fn you can use.

Here's a react example I've created:
https://github.com/chakra-ui/zag/blob/main/examples/next-ts/pages/composition/popover-tooltip.tsx

Please take that and make something that works for Vue.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by segunadebayo
Comment options

You must be logged in to vote
3 replies
@segunadebayo
Comment options

@Theo-Rige
Comment options

@segunadebayo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants