Typescript Auto complete does not work for component props
See original GitHub issueDescribe 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:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top GitHub Comments
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 👍
@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.