Answers for "how to put a icon inside a textfield material ui"

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 align icon with text

<Grid container direction="row" alignItems="center">
  <Grid item>
    <LinkIcon className={classes.linkIcon}  />
  </Grid>
  <Grid item>
    revolve
  </Grid>
</Grid>
Posted by: Guest on March-02-2020

Code answers related to "how to put a icon inside a textfield material ui"

Browse Popular Code Answers by Language