I am trying to both center align the text inside and set a min number value to 0. But that is not occurring. I can do either or but not both at the same time. I looked at the material-ui page on TextField but it was no help --> here
<TextField type="number"
id={cells.id}
inputProps={{min: 0}}
InputProps={classes.inputText}
className={classes.inputComponent}
disabled={cells.disabled}
defaultValue={cells.text} />
I need to set a style for the text field itself and style for the text inside.
inputComponent: {
height: '30px',
width: '71px',
border: '1px solid #D3D4D0',
borderRadius: '5px',
backgroundColor: '#FFFFFF',
boxShadow: '0 1px 0 0 rgba(170,170,170,0.01)'
}
inputText: {
color: 'rgba(0,0,0,0.87)',
fontSize: '16px',
letterSpacing: '0.5px',
lineHeight: '28px',
textAlign: 'center',
}