importtype{ ReactElement }from"react";import{ HomeSVGIcon, InfoOutlineSVGIcon }from"@react-md/material-icons";importtype{ DropdownMenuProps }from"@react-md/menu";import{
DropdownMenu,
MenuItem,
MenuItemLink,
MenuItemSeparator,}from"@react-md/menu";exportdefaultfunctionDemo(props: Partial<DropdownMenuProps>): ReactElement {return(<DropdownMenuid="dropdown-menu-1"buttonChildren="Options..."{...props}><MenuItem>Item 1</MenuItem><MenuItem>Item 2</MenuItem><MenuItemleftAddon={<HomeSVGIcon/>}>Item 3 </MenuItem><MenuItemrightAddon={<InfoOutlineSVGIcon/>}><span>Custom content</span></MenuItem><MenuItemSeparator/>{/* You can provide a custom link component by using `component={Link}` */}<MenuItemLinkhref="#">Link 1</MenuItemLink><MenuItemSeparatorinset/><MenuItemLinkhref="#">Link 2</MenuItemLink></DropdownMenu>);}