We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<HStack> <Spacer /> <Menu.Root> <Menu.Trigger asChild> <Avatar name="Hello World" /> </Menu.Trigger> <Menu.Positioner> <Menu.Content> <Menu.Item value="react">React</Menu.Item> <Menu.Item value="solid">Solid</Menu.Item> <Menu.Item value="vue">Vue</Menu.Item> </Menu.Content> </Menu.Positioner> </Menu.Root> </HStack>
It should work the same as when using a Button as trigger
<HStack> <Spacer /> <Menu.Root> <Menu.Trigger asChild> <Button variant="outline">Open Menu</Button> </Menu.Trigger> <Menu.Positioner> <Menu.Content> <Menu.Item value="react">React</Menu.Item> <Menu.Item value="solid">Solid</Menu.Item> <Menu.Item value="vue">Vue</Menu.Item> </Menu.Content> </Menu.Positioner> </Menu.Root> </HStack>
The text was updated successfully, but these errors were encountered:
Removing the asChild does fix the issue with the Avatar
asChild
Avatar
<HStack> <Spacer /> <Menu.Root> <Menu.Trigger asChild> <-- Remove asChild <Avatar name="Hello World" /> </Menu.Trigger> <Menu.Positioner> <Menu.Content> <Menu.Item value="react">React</Menu.Item> <Menu.Item value="solid">Solid</Menu.Item> <Menu.Item value="vue">Vue</Menu.Item> </Menu.Content> </Menu.Positioner> </Menu.Root> </HStack>
Though I am not sure if this is intended or a bug.
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
It should work the same as when using a Button as trigger
The text was updated successfully, but these errors were encountered: