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
In Storybook, when adjusting the text control, it forces me to apply an object value, which makes sense given the type. But it won't accept a string value. Switching to raw mode, and inputting a string value, it simply ignores it. It's impossible to apply a string value, unless its done manually by changing its arg value in the stories file.
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
-
Summary
Hello,
I have this type for a prop:
text: string | JSX.Element
In Storybook, when adjusting the
text
control, it forces me to apply an object value, which makes sense given the type. But it won't accept a string value. Switching to raw mode, and inputting a string value, it simply ignores it. It's impossible to apply a string value, unless its done manually by changing its arg value in thestories
file.Is there a way around this?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions