All Packages
Svelte

Svelte Runtime

Official Svelte integration supporting responsive Svelte stores.

exodeui-svelte
Installation
bash
npm install exodeui-svelte

Getting Started

The Svelte runtime integrates ExodeUI with Svelte's reactive store system.

Usage

svelte
<script lang="ts">
  import { ExodeUICanvas, createExodeUI } from 'exodeui-svelte';

  const exo = createExodeUI();

  function onReady(engine: any) {
    exo.setEngine(engine);
    exo.setInputBool('isPlaying', true);
  }
</script>

<ExodeUICanvas
  artboard={myArtboard}
  fit="Contain"
  onready={onReady}
  ontrigger={(name, anim) => console.log(name, anim)}
/>