Skip to content

I have the problem during render the React + MUI data #1

Closed Answered by Atohallan
melody4482 asked this question in Q&A
Discussion options

You must be logged in to vote

As I mentioned in the comment, you need to import the components whatever you want from @mui/material as it is v6, and @material-ui/core is v5 which you have imported.

You can also refer to their live demo example as they have mentioned in their official documentation.

Or I shared a small snippet for demonstration. you can also go around with it. Only you need to replace #000000 with black for theming the TextField by importing styled from @mui/material in the below code:

  '& label.Mui-focused': {
    color: 'black',
  },
  '& .MuiInput-underline:after': {
    borderBottomColor: 'black',
  },
  '& .MuiOutlinedInput-root': {
    '& fieldset': {
      borderColor: 'black',
    },
    '&:ho…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melody4482
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working question Further information is requested
2 participants