-
Hi all, I've been wondering about how import { MoreHoriz as MoreHorizIcon } from '@mui/icons-material'
import { IconButton } from '@mui/material'
import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
import { PropsWithChildren, ReactNode } from 'react'
const MenuDemoWithRadix = () => {
<DropdownMenu.Root>
<DropdownMenu.Trigger asChild>
<IconButton aria-label="Toggle menu" size="medium">
<MoreHorizIcon fontSize="medium" />
</IconButton>
</DropdownMenu.Trigger>
// ... rest of the component
</DropdownMenu.Root>
} |
Beta Was this translation helpful? Give feedback.
Answered by
joaom00
Sep 6, 2023
Replies: 1 comment 1 reply
-
Hey @codepath2019, the magic happens in the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wencyen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @codepath2019, the magic happens in the
Slot
component and Radix uses it throughPrimitive
helper