Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
Cambiar el color de TextareaAutosize en React con mui

Soy nuevo en React y uso componentes mui.

Mientras intento establecer el color en el componente TextareaAutosize mui con un código como este:

 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}" /> ); }

el color del componente no cambia.

¡Muchas gracias!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

<TextareaAutosize /> representa un HTMLTextAreaElement simple.

Lo que significa que este CSS funcionará:

 textarea { background-color: #222; color: #BADA55; }

Demostración de trabajo: https://codesandbox.io/s/maxheighttextarea-material-demo-forked-5hc8nv?file=/index.css

Si desea aplicar el CSS a su instancia en particular, asígnele una id y utilícela en el selector de CSS.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!