-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Expose the ButtonBase component #2913
Comments
So would there be a AvatarMenu too then? Instead of AvatarButton, it makes more sense IMHO, to extend Avatar/img support to IconButton. It is only natural to have image based icons. |
+1 for ImageButton or IconButton with image support. |
+1 as well, i couldnot find any "natural" component housing an image as iconButton. |
Any update on this one? I have met this problem too. |
I think that we can close that issue once we expose the |
Hi,
I am working on a weekend project and experimenting with material-ui. I am trying to implement a authentication menu using IconMenu component. The idea is simple and IconMenu seems to be a perfect match... display the sign-in/sign-out/user profile etc options in the menu and use the IconButton to show the user profile and name (in a tool tip). Much like what you have in GitHub :).
Initially the user is not signed in and I display a Font Icon inside the IconButton associated with the IconMenu. However, once the user has logged in, I want to display her profile image within the IconButton. For now I have used Avatar inside IconButton but doing that glitches the dimensions of the IconButton.
If IconButton can support images, I should be able to specify a fixed size on the IconButton and it will obey that if its displaying Font Icon or the image. Besides, the component should anyways support good old image based icons.
Thanks
The text was updated successfully, but these errors were encountered: