Skip to content

Tag: material-ui

How to align Material-UI Menu items?

I use the menu and menu item of material-ui to build a select dropdown menu, but I found one thing strange: the dropdown menu always expand to the left side of the box, as the image shown below: I’ve tried to use the alignItems property inside my <MenuItem> but it didn’t work. My code is sho…

Using Dividers inside Material-UI Tabs

If I want to use a Divider or something else that isn’t a Tab inside Material-UI Tabs, I get DOM warnings in the console. A workaround for this is to create a middleman-kind class like this: But I was thinking if this is the best solution to solve the issue or if there are other, better ways to stop get…

Rotate label – Material UI button

I’ve got a button like this (material-ui): I need to rotate the label (90 degrees). Can someone help me please? Thanks Answer Then you may want to change the height of the button too. Something like this for the root: