How can i override this css of material ui ? i want to change de color to : white, becouse when i try to write on my TextField the color is black
CodePudding user response:
If your custom style is overridden by Material UI you can just add !important; after each one of your custom styles.
CodePudding user response:
You can the sx on the props of the object:
<TextField id="outlined-basic" sx={{background:'red'}} label="Outlined" variant="outlined" />
follow the link to see the props of sx: https://mui.com/system/the-sx-prop/