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

Feature request: Provide <Preview> component

Open RainerAtSpirit opened this issue 5 years ago • 0 comments

Running a local version of xstate-viz like in the public folder works, but it would be even better if we could provide a <Preview machine={myMachine} /> component that allows passing in a machine instance regardless if developed in typescript or javascript. In addition when using <Preview /> the <StateChart previewOnly={true}> component would remove some functionality that is not required when running locally.

See this branch for a POC https://github.com/RainerAtSpirit/xstate-viz/pull/new/previewOnly

image

RainerAtSpirit avatar Nov 07 '19 17:11 RainerAtSpirit