nested asChild
not working !?
#3116
Unanswered
thevipinmishra
asked this question in
Q&A
Replies: 1 comment
-
IMO, you should do the following. <Tooltip>
<Toggle asChild>
<TooltipTrigger asChild>
<Button size="icon-lg">
<ToggleContext>
{(context) => context.pressed ? <SpeakerHigh /> : <SpeakerX />}
</ToggleContext>
</Button>
</TooltipTrigger>
</Toggle>
<TooltipContent>
<p>Toggle Volume</p>
</TooltipContent>
</Tooltip> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to render this composition, but it's not working.
Tooltip is fine, button is fine, toggling doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions