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

206
Views
Property 'style' does not exist on type 'CSSProperties'

I'm changing a component from jsx to tsx and I'm having a typescript problem with a component that is using MaterialUI Grid. This is the code:

const GridItem = ({ style }: React.CSSProperties) => (
    <Grid item style={{ ...{ textAlign: 'center', marginBottom: 0 }, ...style }}>
    {children}
    </Grid>
    )

I'm receiving this error: enter image description here

Property 'style' does not exist on type 'CSSProperties'.ts(2339)

I have tried changing from CSSProperties to Element but I get the same error menssage. And HTMLCollectionOf as well..

What I'm doing wrong?

about 4 years ago · Juan Pablo Isaza
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!