Replies: 1 comment 1 reply
-
So, are you wanting to render the stories and doc pages, without Storybook's UI, instead of just using a custom theme? I don't know how well it works, but think I have heard of people hosting Storybook and embedding the url that you would get from the "Open canvas in new tab" button, on the top right of a story, in an iframe on another site. I don't know if the docs pages can do something similar though. I think you would still have to host your Storybook app, even if not directly using it, for this though. Since you mentioned Angular, if you are wanting to render the Angular component, generated as the root of a story, as a component in a regular Angular application then it would be possible, but there would be limitations and workarounds that could cause issues. I could probably make an example, but I don't see it as a good solution and it would probably take a little while to figure out what all is needed. I am thinking a mix between Storybook's inline rendering and what I did for |
Beta Was this translation helpful? Give feedback.
-
Question about being able to publish/share stories and doc page WITHOUT using Chromatic. (please excuse the cross-post: https://discord.com/channels/486522875931656193/1096460114782855279/1232397789166702592)
I have searched through the discussions and have only come across a few other people discussing this (ex. #24057)
What I am aiming to do is use Storybook to create the awesome docs and stories for my components - THEN - I would like to simply just render the a story and inject the output where I need it. Perhaps something like (pseudocode)
This is pseudocode so please ignore the syntax... the concept I am trying to achieve is how to publish the story without Chromatic.
Can we render the static HTML build for a single component?
i.e.
$> build-storybook --name-of-story --output-folder
Beta Was this translation helpful? Give feedback.
All reactions