xstate-viz
xstate-viz copied to clipboard
Storybook layout
Including the visualizer in Storybook (which would be the natural place as it's a living documentation) looks pretty bad. It works fine, but styling is all over the place. It's not really possible to override styles/apply theming as it's using styled components:

What would be the best approach to make it embeddable in various places and avoid CSS conflicts with host styles?
Use an iframe? Or open it up in a separate window. That storybook's styles leak is completely their fault, and not the responsibility of the visualization component.