question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript Auto complete does not work for component props

See original GitHub issue

Describe the bug The auto complete for component props value does not seem to work. I am not sure if this is a bug or something new that needs to be implemented altogether. But ideally I think it would be a great DX if we get the auto complete values when for example we are entering a color prop on the box and I can select from all the available colors from the theme? I am not sure if this is possible or not. Would love to spend some time on this if required.

Expected Behavior I want to get suggestions when I type a style prop on a component based on the custom theme. For example If I type <Box bg="|"></Box>, (| is the position of the cursor), I want to get autocompelete values for all the possible options based on my theme or default theme.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sidoshicommented, Nov 12, 2019

Yes, I can try and fork styled-system and see if I can get it to work with our use case. I will also check properly-styled and see how it fits. BTW thanks for being open to changes 👍

0reactions
segunadebayocommented, Dec 2, 2019

@sidoshi, let me know when you have something to show and I can re-open this issue.

Can’t wait to see what you come up with.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript React "props" member autocompletion not working
Steps to Reproduce: create a new directory with a file called main.tsx with the following contents ... inside the render function, start typing...
Read more >
React props not auto-complete in VS Code - Stack Overflow
I have a functional component like above (only js). After building the library and publishing, I import into my project but vscode doesn't...
Read more >
Autocomplete using vue3 + typescript for components props
Im trying to get autocompletion on components props by defining an enum. image.png. The prop type seems working if i check on the...
Read more >
react-native-autocomplete-input - npm
render custom result list. Can be used to replace FlatList. All props passed to this function. Known issues. By default the autocomplete will ......
Read more >
AutoComplete - Ant Design
Autocomplete function of input field. ... AutoComplete is an input box with text hints, and users can type freely. ... Customize Input Component....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found