How to show a form on a dropdown in angular material?
问题 I want to show a simple form (as shown in image below) as a dropdown when an icon is clicked. I looked into the component list of angular material but I couldn't find any suitable component for this. There is menu but that can't be used in this case. Does someone know how can I achieve this? 回答1: You can use MatMenu, but you need to do a few things to make it work. The first is to not use mat-menu-item . This forces styling on the item so that it has a fixed height of what you would expect