Skip to content
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

[addon-docs] Display HTML code for react storybooks #8387

Closed
inspiratweb opened this issue Oct 11, 2019 · 1 comment
Closed

[addon-docs] Display HTML code for react storybooks #8387

inspiratweb opened this issue Oct 11, 2019 · 1 comment

Comments

@inspiratweb
Copy link

Can we have a block like in the current addon-docs to display also the resulting plain html markup?
It would be very useful for design systems

Describe the solution you'd like
Using the text.stories given in the installation example we get the react code (in my case) like

() => <Button onClick={action('clicked')}>Hello Button</Button>

Is there a way to get the plain HTML from that code (not using addon-info)?

<button>Hello Button</button>
@shilman
Copy link
Member

shilman commented Oct 11, 2019

Closing as dupe to #7479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants