Skip to main content
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →
All Packages
Vue 3

Vue Runtime

Official Vue 3 runtime integration for ExodeUI.

exodeui-vue
Installation
bash
npm install exodeui-vue

Getting Started

The Vue runtime provides reactive composables for seamless ExodeUI integration in Vue 3 applications.

Usage

vue
<template>
  <ExodeUICanvas
    :artboard="artboardData"
    fit="Contain"
    @ready="onReady"
    @trigger="onTrigger"
    @navigation="onNavigation"
  />
</template>

<script setup lang="ts">
import { ExodeUICanvas, useExodeUI } from 'exodeui-vue';

const { setEngine, setInputBool, fireTrigger } = useExodeUI();

function onReady(engine: any) {
  setEngine(engine);
  setInputBool('isPlaying', true);
}

function onTrigger(name: string, anim: string) {
  console.log('Trigger:', name, anim);
}

function onNavigation({ type, value }: any) {
  if (type === 'url') window.open(value);
}
</script>