Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
64 lines
1.4 KiB
TypeScript
64 lines
1.4 KiB
TypeScript
import Box from '@mui/material/Box';
|
|
import TextField from '@mui/material/TextField';
|
|
|
|
export default function ValidationTextFields() {
|
|
return (
|
|
<Box
|
|
component="form"
|
|
sx={{ '& .MuiTextField-root': { m: 1, width: '25ch' } }}
|
|
noValidate
|
|
autoComplete="off"
|
|
>
|
|
<div>
|
|
<TextField
|
|
error
|
|
id="outlined-error"
|
|
label="Error"
|
|
defaultValue="Hello World"
|
|
/>
|
|
<TextField
|
|
error
|
|
id="outlined-error-helper-text"
|
|
label="Error"
|
|
defaultValue="Hello World"
|
|
helperText="Incorrect entry."
|
|
/>
|
|
</div>
|
|
<div>
|
|
<TextField
|
|
error
|
|
id="filled-error"
|
|
label="Error"
|
|
defaultValue="Hello World"
|
|
variant="filled"
|
|
/>
|
|
<TextField
|
|
error
|
|
id="filled-error-helper-text"
|
|
label="Error"
|
|
defaultValue="Hello World"
|
|
helperText="Incorrect entry."
|
|
variant="filled"
|
|
/>
|
|
</div>
|
|
<div>
|
|
<TextField
|
|
error
|
|
id="standard-error"
|
|
label="Error"
|
|
defaultValue="Hello World"
|
|
variant="standard"
|
|
/>
|
|
<TextField
|
|
error
|
|
id="standard-error-helper-text"
|
|
label="Error"
|
|
defaultValue="Hello World"
|
|
helperText="Incorrect entry."
|
|
variant="standard"
|
|
/>
|
|
</div>
|
|
</Box>
|
|
);
|
|
}
|