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

193
Views
What casing do styled components use when passing attributes to html or web-component elements

What casing do styled-components use when passing attributes to the element.

Lets say you have this HTML with attributes:

<div data-justin='my name' class='text' data-selected=false> </div>

              or a web-component like this:

<web-component a-long-attr-justin='my name' tons-of-data-selected=false> </div>

Then you have this as a styled component:

export const StyledComp = styled('div')

export const StyledComp = styled('web-component')

Now I have passed my attributes in kabob case. Question is when the styled component passes those given attributes back to the HTML element or web-component Element what casing is used? Is it Camel case, Pascal, snake case?

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!