xstate-viz icon indicating copy to clipboard operation
xstate-viz copied to clipboard

Storybook layout

Open czebe opened this issue 6 years ago • 1 comments

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:

image

What would be the best approach to make it embeddable in various places and avoid CSS conflicts with host styles?

czebe avatar May 22 '19 07:05 czebe

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.

davidkpiano avatar May 22 '19 12:05 davidkpiano