(Go: >> BACK << -|- >> HOME <<)

Skip to content

Unable to use a custom component as a child with Tooltip.Trigger's asChild prop #1166

Answered by jjenzz
sdnts asked this question in Help
Discussion options

You must be logged in to vote

If you spread the Button props onto the button, it will work https://codesandbox.io/s/reverent-bohr-xqrxpd?file=/App.js

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sdnts
Comment options

Answer selected by sdnts
Comment options

You must be logged in to vote
1 reply
@jjenzz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants