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

208
Views
Typescript types/intellisense that change dynamically, based on other objects?

I've created a DX tool that's used like this:

const Title = () => (
  <Div w_full bg_black text_white />
)
  1. User passes attributes to a function component
  2. Component parses the attributes, which are passed into Styled Components
  3. A CSS rich component is returned

So far so good, and I've got full intellisense for the above keys, but I'm trying to implement a 'describe' attribute, with which the use case is:

const Title = () => (
  <Div describe="kinda big, centered on screen" />

The describe string is sent to a language processing API, and the component generates intellisense suggestions based on what the user is likely describing. So once they hit this stage in their typing, it should populate their intellisense with certain tags:

const Title = () => (
  <Div
    describe="kinda big, centred on screen"
    *tags=*
  />
)

Is this possible?

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!