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

112
Views
cómo importar valores a componentes con estilo desde otro archivo

Estoy tratando de pasar un valor importado de otro archivo a mi componente con estilo, pero recibo una notificación de mi editor de que la sintaxis es incorrecta, ¿cuál es la forma correcta de escribir esto o cómo puedo pasar el valor del color de fondo a este componente?

 import { Colors } from "../theme/Theme"; const FootergEl = styled.div` position: relative; height: 482px; width: 100vw; margin-top: 196px; background-color: `${Colors.Brand.BGFooter}`; `;
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

la forma correcta de hacer esto es la siguiente

 import { Colors } from "../theme/Theme"; const FootergEl = styled.div` position: relative; height: 482px; width: 100vw; margin-top: 196px; background-color: ${()=>Colors.Brand.BGFooter};`; ;
about 4 years ago · Santiago Trujillo 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!