Structure type definitions to surface Nimbus component props first in autocomplete #1079
yassinejebli
started this conversation in
Ideas
Replies: 1 comment
-
|
This is a great ask, @yassinejebli. Appreciate the reported workaround from your side. We've created this ticket to address |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using Nimbus components, the autocomplete lists all props without distinction (custom props get buried under hundreds of inherited Chakra ui/HTML props) making discoverability harder
This matters because ideally we want to encourage devs to reach for the custom component props first rather than defaulting to lower level Chakra customisation. If the custom props are more visible in autocomplete, devs are more likely to use the intended API surface (like
onPressvsonClick...)Question
Would it be feasible to sort/structure the type definitions so that custom component specific props appear before inherited Chakra ui props in autocomplete?
A possible workaround
Using typescript-vscode-plugins with
"tsEssentialPlugins.fixSuggestionsSorting": truein vscode settings which respects declaration orderJust opening this for discussion, not a request or a priority.
Beta Was this translation helpful? Give feedback.
All reactions