Answers for "material ui add icon to text field"

3

material ui textfield with icon button

// imports
import IconButton from "@material-ui/core/IconButton";
import InputAdornment from "@material-ui/core/InputAdornment";
import SearchIcon from "@material-ui/icons/Search";

// render

<TextField
  label="With normal TextField"
  InputProps={{
    endAdornment: (
      <InputAdornment>
        <IconButton>
          <SearchIcon />
        </IconButton>
      </InputAdornment>
    )
  }}
/>
Posted by: Guest on October-15-2020
0

Material-ui add box icon

import AddBoxIcon from '@material-ui/icons/AddBox';
// don't forget to import the icon dependancy
// npm install @material Ui/icons
Posted by: Guest on February-19-2021

Code answers related to "material ui add icon to text field"

Browse Popular Code Answers by Language