Do NOT forget to import: import VisibilityIcon from "@mui/icons-material/Visibility"; import VisibilityOffIcon from "@mui/icons-material/VisibilityOff"; 😉
I started this course today, and I am amazed. I like your teaching style, especially because you give examples of how these components could be used in a real world application. Thank you so much!
I just started learning react. This is by far the best set of tutorials for MUI I’ve found that I entirely understand. Thanks!
Well, I got the visibility Icon done. You teaching style is so intuitive and makes learning very enjoyable. You are heaven sent.
For password visibility on and off
const [viewer, setViewer] = useState(false);
const handleVisibility = () => {
setViewer((prev) => !prev);
};
Thanks lazy genius
Do NOT forget to import:
import VisibilityIcon from "@mui/icons-material/Visibility";
import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
😉
Thanks! I had to use the icons in the most recent way and i went on and implemented IconButton for a slight better look.
Thank you for making these well organized tutorials.
I started this course today, and I am amazed. I like your teaching style, especially because you give examples of how these components could be used in a real world application. Thank you so much!
Visibility exercise: I was able to complete it with useState, returning a boolean for the password prop. Thank you, I learned a lot doing it.
I have successfully implemented password visibility toggler. Thanks for all valuable content that you provided us.
Dude all of your videos are awesome and very well explained. You're helping me a lot thank you so much !
Can't thank you enough for creating this tutorial. MUI has always been hard to learn for me. This tutorial makes it easier.
great resource to learn MUI, and yes was able to use the icon as an end adornment for the password field.
I was able to get the password visibility done . Thanks for the tutorial 😊
Thanks had problems using the InputAdorment, now it works, even with the icon! Thanks
Struggled a bit to get the toggle visibility function working, but ended up getting it to work
So many helpful tips in one video, thanks!
Awesome series!! BTW what is vs code theme name used in this video?
import React, { useState } from 'react';
import { Stack, TextField, InputAdornment, IconButton } from '@mui/material';
import Visibility from '@mui/icons-material/Visibility';
import VisibilityOff from '@mui/icons-material/VisibilityOff';
const MuiTextField = () => {
const [showPassword, setShowPassword] = useState(false);
const handleShowPassword = () => {
setShowPassword(!showPassword);
};
return (
);
};
export default MuiTextField;
This playlist is very useful. Thank you so much!❤
awsome explaining
Nice explanation
when i do rtl for text field label still in dir ltr why that i give this value for layout for full website
I did the exercise and use visible and invisible icons together to toggle the password render
is the Textfield default position is absolute ?
Awesome Job & Well Explained Sir!🤗
how to separate label from input? label on top or left input as normal textbox.
Please make a playlist on MERN STACK project from scratch
How to prevent the error in TextField on page load?
Coolest one!
Adornment does not work now. Please confirm this.
Thanks
Thanks sir
thank you so much
I did the password exercise, here's the code:
import VisibilityOutlinedIcon from '@mui/icons-material/VisibilityOutlined'
import { useState } from 'react'
const MuiTextFIeld = () = {
const [passwordType, setPasswordType] = useState('password')
const handleClick = () => {
if (passwordType === 'password') {
setPasswordType('text')
} else {
setPasswordType('password')
}
}
return (
)
}
export default MuiTextField
Is there a way to customize the text field component so that inputs look like conventional input fields? i.e. label above text field, flush left.
There are other input components you could use. Check out the OutlinedInput component.
Done!
import CurrencyRupeeIcon from '@mui/icons-material/CurrencyRupee';
then tag replace with $