Material UI: Create Normal Looking TextFields The Easy Way

Daniel RamirezDaniel Ramirez
1 min read
import FormControl from '@mui/material/FormControl';
import FormLabel from '@mui/material/FormLabel';
import OutlinedInput from '@mui/material/OutlinedInput';

function TextFieldDemo() {
  return (
    <FormControl size="small">
      <FormLabel htmlFor="first-name">First name</FormLabel>
      <OutlinedInput id="first-name" />
    </FormControl>
  )
}
0
Subscribe to my newsletter

Read articles from Daniel Ramirez directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Daniel Ramirez
Daniel Ramirez