-
-
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
Display of Template inside Story not as expected #11813
Comments
Looks similar to #11542 I'm guessing this a bug or maybe the doc for controls is not updated, but you can do this as a workaround and it should output the code correctly: <Preview>
<Story
name="Interactive"
args={{ label: "Primary button ", state: "primary" }}
>
{args => <Button {...args} />}
</Story>
</Preview> |
Well, kinda. While it does not output the
As the |
@schalkneethling is the original problem still an issue in the latest release? |
@shilman yes, just tested with the latest (6.0.14) and still an issue. See also #11542 (comment) |
Hey everyone! Has there been any progress in fixing the template bind and code rendering issue? |
closing as dupe to #11542 |
Describe the bug
To Reproduce
I have the following code inside a
mdx
file:When I view the relevant Docs page in the browser and click on the "Show code" link, the following is shown:
Expected behavior
I expected it to output the following:
Screenshots
System:
The text was updated successfully, but these errors were encountered: