-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controls: React text node support #11429
Comments
Any temporary fix for this? |
You can also set |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Is there any workaround for this one? UPD: {
argTypes: {
child: {
table: {
type: {
summary: 'React.ReactNode'
}
},
control: {
type: 'select',
options: {
default: [ ],
withChild: [
<SomeComponent />
]
}
}
}
}
} |
Nice workaround! But how do you pass props to that component? The value of my |
Because JSX isn't serializable (by telejson), such values cannot be used as args. As of Storybook 6.2, you can use a |
Currently React nodes, such as
children
, show a JSON object editor by default. They should show a text editor instead, in the short term. Long term, we should support JSX #11428The text was updated successfully, but these errors were encountered: