If you want your TextField element to occupy the full height and width of its container,
Simply add the fullWidth prop to your TextField element for the width:
<TextField fullwidth/>
To set a specific height,
If you include the Multiline={true} prop in your TextField element, Material UI automatically adjusts the height based on the number of rows (a new row is added every time the user hits enter).
To manually set the height, add the prop rows={1}*
<Textfield multiline rows={1} fullwidth />
You can then adjust the height using JSS,
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(() => ({
inputMultiline : {
"& .MuiInputBase-input" : {
height: '100vh', //Specify the height of your container here
},
}
}));
Add this class to the className of your TextField element,
<TextField multiline fullWidth row={1} className={classes.inputMultiline} />
If you have any questions, refer to the material ui TextField API here and the material ui styles API here.
(Although, detailed information may not be available in the docs)