How do I make Material UI container have full width and height?

 https://stackoverflow.com/questions/70238818/how-do-i-make-material-ui-container-have-full-width-and-height

You will need to add maxWidth={false} and disableGutters properties to the <Container/> component. Additionally, you should include the <CssBaseline/> component to reset the browser's CSS.

Example:

<>
    <CssBaseline />
    <Container maxWidth={false} disableGutters>
      {children}
    </Container>
</>

Container API

NameTypeDefaultDescription
maxWidth'xs', 'sm', 'md', 'lg', 'xl', false, stringDetermine the max-width of the container. The container width grows with the size of the screen. Set to false to disable maxWidth.
disableGuttersboolfalseIf true, the left and right padding is removed.

Không có nhận xét nào:

Is there a way to chain multiple tailwind css classes on a single hover instance?

 https://stackoverflow.com/questions/73524088/is-there-a-way-to-chain-multiple-tailwind-css-classes-on-a-single-hover-instance There is a wa...