nuxt-xstate
v0.6.2
Published
XState integration for Nuxt
Downloads
975
Maintainers
Readme
Nuxt XState
Nuxt XState module allows for easy integration of XState with Nuxt.js.
- Read documentation :book:
- Online playground :video_game:
Features :sparkles:
- Nuxt Bridge & Nuxt 3 supported
- Auto-importing of XState composables
- Auto-importing of your own state-machines
Installation :floppy_disk:
Run one of the following commands:
yarn add --dev nuxt-xstate
# or
npm install --save-dev nuxt-xstate
And add it to your nuxt.config.ts
:
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
modules: ['nuxt-xstate']
})
Usage :toolbox:
:point_right: Check out the documentation
Work in progress :construction:
- [ ]
@xstate/inspect
support
Development :computer:
- Clone repository and install dependencies with
yarn install
- Run
yarn dev:prepare
to generate type stubs. - Use
yarn dev
to start playground in development mode.