carbon
carbon copied to clipboard
[Feature Request]: Support the ability to make the MenuItem component a clickable link
The problem
I am implementing a feature for a chat bot that allows developers to add custom elements to the chat header. The custom elements are a link, menu (w/submenus), and buttons.
Even if the web chat is a larger size, there is only so much you can fit into the chat header. This is where the Menu component is useful for a developer who wants to fit more elements in the chat header that can't all be displayed at once.
The problem at the moment is that developers will be able to add Menus with custom buttons and submenus that can't fit in the header, but they won't be able to add links to menus because the MenuItem component doesn't support anchor element attributes as props (href, target, etc.).
The solution
I would like for the MenuItem component to support anchor element attributes so that it can be a link in order to help complete the feature I'm working on.
Examples
- OverflowMenuItem component props
Application/PAL
No response
Business priority
Medium Priority = upcoming release but is not pressing
Available extra resources
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct