Sizing
Easily make an element as wide or as tall (relative to its parent) with our width and height utilities.
Width
<Box width="25%">…
<Box width="50%">…
<Box width="75%">…
<Box width="100%">…
<Box width="auto">…
Height
<Box height="25%">…
<Box height="50%">…
<Box height="75%">…
<Box height="100%">…
API
import { sizing } from '@material-ui/system';
Import name |
Prop |
CSS property |
Theme key |
width |
width |
width |
none |
maxWidth |
maxWidth |
max-width |
none |
minWidth |
minWidth |
min-width |
none |
height |
height |
height |
none |
maxHeight |
maxHeight |
max-height |
none |
minHeight |
minHeight |
min-height |
none |