menu icon indicating copy to clipboard operation
menu copied to clipboard

Feature: Enable rendering a different element

Open jsbrain opened this issue 3 years ago • 2 comments

Due to accessibility and UX reasons I want to render actual link elements instead of li elements.

This can currently only achieved by using <Menu.Item> which gives me an error notification, that it is deprecated and items should be used.

But with the items prop it seems to me there's no way to achieve the same. I guess I could abuse the label prop for that matter by making it full size and reconstruct the default layout of said element so it works the same way with the icon and what not.

Ideally, I'd want an option to change the type of the list element that's being rendered.

jsbrain avatar Jan 23 '23 10:01 jsbrain

Render <a> in label would be ok.

MadCcc avatar Mar 08 '23 12:03 MadCcc

Anything would probably be ok. My point is, AFAIK there is no option to specify what element to render at all.

Or am I wrong here?

jsbrain avatar Mar 08 '23 14:03 jsbrain