It seems IconMenu was deleted in cf0934dda2ef83852ca094ac7250e2d562ce6156 for the @next branch.
Does @next includes a component similar to IconMenu
to build a menu with an icon directly?
Maybe I missed something - the @next docs says it does:
But I can't find it other than the Doc Demo which doesn't abstract the logic to a component, so that we don't have to define event handlers, etc.
But I can't find it other than the Doc Demo which doesn't abstract the logic to a component, so that we don't have to define event handlers, etc.
@Sydney-o9 You are right, we haven't built an IconMenu
abstraction yet. The integration between the two is straightforward. You need to listen for the onClick
and provide a anchorEl
. I don't think that it's enough to justify an abstraction. Still, plus the accessibility, it might start to be interesting to abstract the logic. One last thing, I think that this potential IconMenu
component should be stateless.
I have added the waiting for users upvotes
tag. I'm closing the issue as I'm not sure people are looking for such abstraction. So please upvote this issue if you are. We will prioritize our effort based on the number of upvotes.
Bummer, yet another component we use in v0.19.x that is not ported to v1.0. We use this component in our mobile views.
We're in the same boat as @skirunman -- been wanting to upgrade to beta, but can't because of no icon menu :(
Anyone have a recommended alternative?
@matthoffner You can find a demo https://material-ui.com/demos/menus/#max-height-menus.
Most helpful comment
Bummer, yet another component we use in v0.19.x that is not ported to v1.0. We use this component in our mobile views.