Inlay hints for Sprinkles? Idk what to call em #980
p7gg
started this conversation in
Show and tell
Replies: 0 comments
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.
-
I was doing some testing and found out something by accident that I think it's really helpful for ppl building for public API's
lets say you have some sprinkles - pay attention to the comment I added to the display property:
If you create a component that extends the Sprinkles type, like this:
Whenever you use this component you'll get the same inlay hints you added in the sprinkles definition:

Codesandbox:
https://codesandbox.io/p/sandbox/practical-minsky-7y88uw?file=%2Fsrc%2FApp.tsx&selection=%5B%7B%22endColumn%22%3A1%2C%22endLineNumber%22%3A6%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A6%7D%5D
Beta Was this translation helpful? Give feedback.
All reactions