I am using Preview addon in Storybook for React to show the component usage in Docs.
<Preview withToolbar>
<Story name="primary">
<PrimaryButton disabled={boolean("Disabled",false)} modifiers={["small"]} onClick={action('button-click')} > {text("Label", "Hello Storybook")}</PrimaryButton>
</Story>
</Preview>
This generate doc as below :
There is a show code/ hide code switch which shows the React Code for the component , is it possible to show the plain HTML markup as well.
I need to use a single storybook component explorer for React and non React Projects so wanted to check if plain markup source code be generated as well.
Thanks