material ui textfield lock icon code example
Example 1: material ui textfield with icon button
import IconButton from "@material-ui/core/IconButton";
import InputAdornment from "@material-ui/core/InputAdornment";
import SearchIcon from "@material-ui/icons/Search";
<TextField
label="With normal TextField"
InputProps={{
endAdornment: (
<InputAdornment>
<IconButton>
<SearchIcon />
</IconButton>
</InputAdornment>
)
}}
/>
Example 2: @material-ui/icons
yarn add @material-ui/icons
# NPM
npm install @material-ui/icons