Answers for "material-ui textfield inputprops"

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 width textfield

// Option 1
<TextField style ={{width: '100%'}} />

// Option 2
<TextField fullWidth />
Posted by: Guest on November-19-2020

Code answers related to "material-ui textfield inputprops"

Browse Popular Code Answers by Language