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

How to use the Viz in a simple html page

Open avataron opened this issue 2 years ago • 1 comments

Hello, I'm trying to find documentation on how to put the Viz to work in a simple html page, but I can't find any.

Something like:

  • add a script src
  • code to configure the options
  • code to start the machine inside it

Additionally, it's not clear if this exists in the component: enable editing the designer (drag-dropping the elements, for example).

Is it possible?

avataron avatar Mar 26 '23 17:03 avataron

Hey! Have you tried using an iframe?

andreszapatavff avatar May 09 '23 15:05 andreszapatavff