Created
December 5, 2023 16:22
-
-
Save ejmudrak/3cab16fcb24f97b8fc4340ccbbc24dad to your computer and use it in GitHub Desktop.
Inaccessible Password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <TextField | |
| type={showPassword ? 'text' : 'password'} | |
| InputProps={{ | |
| endAdornment: ( | |
| <IconButton | |
| onClick={() => setShowPassword((prev) => !prev)} | |
| > | |
| {showPassword ? <VisibilityOff /> : <Visibility />} | |
| </IconButton> | |
| ), | |
| }} | |
| /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment