Add rendered HTML code preview options #24547
rolfcleveringa
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Sort of. We use Storybook with React for the stories, however the projects we use don't use React. They need plain HTML examples/snippets.
Describe the solution you'd like
The autodocs create a preview of the component and with the "Show code" button, you can see the React code. I'd like to see another tab available to show the rendered HTML preview of the component.
Describe alternatives you've considered
I've looked into addons for this, but none seem te be build for the latest Storybook versions (> 7.*). The only one I found that seemed ok is this one: https://storybook.js.org/addons/@whitespace/storybook-addon-html. However it doesn't work for Storybook 7.
My versions:
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions