app').If you get an error with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).To define international parts for Volar type-checking you are going to need to have to incorporate:.// components.d.ts.state component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to use:.app.use( Vue3Spline, title: 'SplineAnimation')// use in layout.label string (default: 'Vue3Spline') - specified custom-made component title.As an alternative you can easily likewise import the component locally.bring in Vue3Spline coming from 'vue3-spline'.export default elements: Vue3Spline,.,.You may then utilize the component in your design template.
Nuxt 3.This is still speculative. Will be actually updated very soon.You can put in vue3-spline over yarn or even npm. spline-runtime is a dependence of vue3-spline and also ought to be instantly put up when you put up vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- conserve.If you are actually utilizing anecdote:.anecdote add vue3-spline@latest.Generate a directory phoned plugins at the origin of your project.Generate a data called Vue3Spline.client.ts inside the plugins listing.Include the observing code to the Vue3Spline.client.ts file.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).This should sign up as an international component that you can easily call throughout your application under the tag.I would certainly encourage utilizing a parent tag to make certain that the computer animation only bunches know the client side.
Github.