Could not find the correct way to have only positive numbers in an MUI text field of type='number'
Here is my Field
<TextField
name={name}
type={props.type || 'text'}
label={props.label}
helperText={errorMessage}
variant={props.variant}
multiline={props.multiline}
required={props.required}
value={props.value}
defaultValue={props.initialValue}
rows={props.rows}
size={props.size}
InputProps={{
readOnly: props.readonly, startAdornment: props.startAdornmentText && <InputAdornment position='start'>{props.startAdornmentText}</InputAdornment>,
}}
Need to add Min value of 0, I guess it will be in the InputProps, like {min:0} but did not work
Thanks