Vue 3
Vue Runtime
Official Vue 3 runtime integration for ExodeUI.
exodeui-vue
Installation
bash
npm install exodeui-vueGetting 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>Vue 3 Animation Recipes
Production-ready interactive animations, transitions, and physics recipes for Vue 3: