-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Support the ability to make the MenuItem component a clickable link #17788
Comments
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team. |
I think I'm encountering the same issue as the issue author except I can define an Reproduction for the
|
Summary from the Slack threads: Yes, this is an enhancement we want to add. |
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
Application/PAL
No response
Business priority
Medium Priority = upcoming release but is not pressing
Available extra resources
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: