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
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