Change TextareaAutosize color in React with mui

Viewed 223

I'm new at React and using mui components.

While I'm trying to set color to TextareaAutosize mui component with code like this:

import * as React from 'react';
import TextareaAutosize from '@mui/material/TextareaAutosize';
import { blue } from '@mui/material/colors';

export default function EmptyTextarea() {
  return (
    <TextareaAutosize
      aria-label="empty textarea"
      placeholder="Empty"
      style={{ width: 200, color: blue, background: blue}}
      //Also not works: color="{blue}"
    />
  );
}

the color of the component not changed.

Thanks a lot!

1 Answers
Related