import * as React from 'react'; import Box from '@mui/material/Box'; import IconButton from '@mui/material/IconButton'; import Input from '@mui/material/Input'; import FilledInput from '@mui/material/FilledInput'; import OutlinedInput from '@mui/material/OutlinedInput'; import InputLabel from '@mui/material/InputLabel'; import InputAdornment from '@mui/material/InputAdornment'; import FormHelperText from '@mui/material/FormHelperText'; import FormControl from '@mui/material/FormControl'; import TextField from '@mui/material/TextField'; import Visibility from '@mui/icons-material/Visibility'; import VisibilityOff from '@mui/icons-material/VisibilityOff'; export default function InputAdornments() { const outlinedStartId = React.useId(); const outlinedWeightId = React.useId(); const outlinedPasswordId = React.useId(); const outlinedAmountId = React.useId(); const filledStartId = React.useId(); const filledWeightId = React.useId(); const filledPasswordId = React.useId(); const filledAmountId = React.useId(); const standardStartId = React.useId(); const standardWeightId = React.useId(); const standardPasswordId = React.useId(); const standardAmountId = React.useId(); const [showPassword, setShowPassword] = React.useState(false); const handleClickShowPassword = () => setShowPassword((show) => !show); const handleMouseDownPassword = (event) => { event.preventDefault(); }; const handleMouseUpPassword = (event) => { event.preventDefault(); }; return (
kg, }, }} /> kg} aria-describedby={`${outlinedWeightId}-helper-text`} inputProps={{ 'aria-label': 'weight', }} /> Weight Password {showPassword ? : } } label="Password" /> Amount $} label="Amount" />
kg, }, }} variant="filled" /> kg} aria-describedby={`${filledWeightId}-helper-text`} inputProps={{ 'aria-label': 'weight', }} /> Weight Password {showPassword ? : } } /> Amount $} />
kg, }, }} variant="standard" /> kg} aria-describedby={`${standardWeightId}-helper-text`} inputProps={{ 'aria-label': 'weight', }} /> Weight Password {showPassword ? : } } /> Amount $} />
); }