How to set border none on mui textfield in react js?

Hi Friends 👋,

Welcome To aGuideHub! ❤️

To set border none on mui textfield, set border: none !important; in .MuiOutlinedInput-notchedOutline for outline textfield].

Today, I am going to show you. how to change mui textfield border color in react js mui textfield.

To change the color of the border outlined text field do this

.MuiOutlinedInput-notchedOutline {
  border: none !important;
## Installation

Install the following packages to use mui textfield in react js.


npm install @mui/material @emotion/react @emotion/styled


yarn add @mui/material @emotion/react @emotion/styled

MUI material textfield change border color example

The TextField wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), filled, and standard.


import * as React from 'react';
import Box from '@mui/material/Box';
import TextField from '@mui/material/TextField';
import "./App.css"

export default function CustomizedInputs() {
  return (
        display: 'grid',
        gridTemplateColumns: { sm: '1fr 1fr' },
        gap: 2,
      <TextField id="outlined-basic" label="Outlined" variant="outlined" />


.MuiOutlinedInput-notchedOutline {
  border: none !important;

In the above code example, I have used the @mui/material TextField component and changed the color of the border of all types of MUI Textfield.

Check the output of the above code example.

React, Mui Textfield Border None

All the best 👍

Premium Content

You can get all the below premium content directly in your mail when you subscribe us


Interview Questions

Soon You will get CSS, JavaScript, React Js, and TypeScript So Subscribe to it.

Portfolio Template

View | Get Source Code

Cheat Sheets

Cheat Sheets Books are basically Important useful notes which we use in our day-to-day life.

Related Posts