Skip to content
Advertisement

Tag: material-ui

React Material-Ui Sticky Table Header with Dynamic Height

I am using the Material-UI framework for React to display a table. I would like to use a sticky header; however, I do not want to set a height on my table, as I’d like it to scroll with the page. The following snippet does not stick the header unless I set a height on the TableContainer. https://codesandbox.io/s/winter-firefly-5wlx2?file=/src/App.js Answer Get

Material-ui v4 shows component names in html DOM class attributes?

After migrating from material-ui v3 to v4, noticed the react component/function name in the class attribute inside the HTML. Is that expected? Might this somehow affect overriding class properties already noticing issues when trying to override with new styles which do not apply. Also is there a possibility to remove those? The component names are: WrapperComponent, withRouter, CustomerDetailsContainer among others.

Change image according to value of MaterialUI slider

I would like to use a discrete Slider component from Material UI to change a picture in a React web app: every time the user changes the value on the slider, a different picture should be displayed in a specified div. How can I do it? I guess that this starts with invoking a handleChange function in onChange within the

Too long title slide the menu button to the right outside of the card

I have a problem with MuiCardHeader For some reason too long title or subtitle slide the menu button to the right outside the card. How can I prevent it? Result I need Here is code sandbox https://codesandbox.io/s/dazzling-paper-5d35h?file=/src/App.js UPD: Solution Add the following code to .MuiCardHeader-content class Thanks to everyone for help! Answer You need to restrict the parent with text-overflow:

Advertisement