Design de UI do material de comprimento de entrada
<TextField
required
id="required"
label="Required"
defaultValue="Hello World"
inputProps={{ maxLength: 12 }}
/>
Moqeem Ansari