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
But this is only useful for basic values (edit: yes really. If I put JSON as a value, it'll be added as a literal JSON string, not as an object - that's really a missed oppertunity is nothing else). If I'm giving Storybook to a designer to look at, and play with our components, he/she will not magically know what kind of objects to put in there. I'm guessing this problem has been foreseen, since this editor has existed since 6.2.
So the question is, how?
And of course, would there be a comprehensive reference documentation for argTypes, this question would already be answered, but there isn't, so it isn't, yet 😉
How can I put in argTypes an interface if you will, for the objects are are allowed in an array element in a prop?
If this doesn't exist yet, then here's a proposal, free of charge 😀
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is pretty good for a start:
But this is only useful for basic values (edit: yes really. If I put JSON as a value, it'll be added as a literal JSON string, not as an object - that's really a missed oppertunity is nothing else). If I'm giving Storybook to a designer to look at, and play with our components, he/she will not magically know what kind of objects to put in there. I'm guessing this problem has been foreseen, since this editor has existed since 6.2.
So the question is, how?
And of course, would there be a comprehensive reference documentation for
argTypes
, this question would already be answered, but there isn't, so it isn't, yet 😉How can I put in
argTypes
an interface if you will, for the objects are are allowed in an array element in a prop?If this doesn't exist yet, then here's a proposal, free of charge 😀
Beta Was this translation helpful? Give feedback.
All reactions