It would add an option to choose HTML elementType for "items" props of the "Menu" component
The proposed feature would add an object attribute to the "items" prop of the "Menu" component. The attribute e.g. elementType would define the HTML element used by the items inside the Menu.
Why is this important you may ask? This would in term make the user able to choose the element type in which menu items will be rendered (e.g. div, span, a, ...etc). An example is that when right-clicking a Menu element currently, the link options are not present (e.g. open in a new tab, etc...). This would in term be available if the elementType is set to "a"
This would upgrade the feature of the Menu component after 4.20.0 https://ant.design/components/menu/#Usage-upgrade-after-4.20.0
const menuItems=[{ label:"menuItem1", key:"1", elementType:"a" ,... }]
or
const menuItems=[{ label:"menuItem1", key:"1", elementType:MenuItemType.Anchor ,... }]
<Menu items={menuItems}>
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too