You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can then use PropsTable and see enum as a result. This allows me to hover and see possible inputs.
This is awesome, but it kind of breaks when I define a props like this:
type Tag = 'h1' | 'h2' | 'h3' | 'p' | 'span';
type Props = {
tag: Tag
}
In this case the props table just says Tag.
It would be great if I could hover over it and see the possible values, just like in the first case.
Thanks!
The text was updated successfully, but these errors were encountered:
Hey! Thanks for this package, it's damn awesome!
I'm not quite sure if this is a bug or a feature request, but here goes:
When using Typescript and defining an enum prop like this:
I can then use PropsTable and see
enum
as a result. This allows me to hover and see possible inputs.This is awesome, but it kind of breaks when I define a props like this:
In this case the props table just says
Tag
.It would be great if I could hover over it and see the possible values, just like in the first case.
Thanks!
The text was updated successfully, but these errors were encountered: