An open API service indexing awesome lists of open source software.

https://github.com/do-wa/xstate-addon

Storybook addon for xstate
https://github.com/do-wa/xstate-addon

javascript statechart storybook-addon

Last synced: about 1 month ago
JSON representation

Storybook addon for xstate

Awesome Lists containing this project

README

        

# WARNING

**this project is not actively maintained**

**based on xstate v3.2 and storybook v3.4**

# xstate-addon
A storybook addon project for xstate (https://github.com/davidkpiano/xstate)

The project is in an early stage.
Everyone who is interested in bringing this project forward is welcome to contribute ideas, docs and code.

## install

```javascript
npm i storybook-addon-xstate -D
```

### register

addons.js
```javascript
import 'storybook-addon-xstate/register';
```

### story

```javascript
import { WithXStateGraph } from 'storybook-addon-xstate';



```

## basic idea
![Basic Idea](https://github.com/do-wa/xstate-addon/blob/master/poc.gif)