import * as React from 'react'; import Stack from '@mui/joy/Stack'; import Input from '@mui/joy/Input'; import LinearProgress from '@mui/joy/LinearProgress'; import Typography from '@mui/joy/Typography'; import Key from '@mui/icons-material/Key'; export default function PasswordMeterInput() { const [value, setValue] = React.useState(''); const minLength = 12; return ( } value={value} onChange={(event) => setValue(event.target.value)} /> {value.length < 3 && 'Very weak'} {value.length >= 3 && value.length < 6 && 'Weak'} {value.length >= 6 && value.length < 10 && 'Strong'} {value.length >= 10 && 'Very strong'} ); }