app').If you get an inaccuracy with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To specify international parts for Volar type-checking you will definitely need to have to add:.// components.d.ts.announce element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename element to use:.app.use( Vue3Spline, name: 'SplineAnimation')// use in design template.name strand (default: 'Vue3Spline') - set customized part name.Additionally you may likewise import the element in your area.import Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily then make use of the part in your design template.
Nuxt 3.This is still speculative. Will be actually updated soon.You may put up vue3-spline over anecdote or npm. spline-runtime is actually a dependency of vue3-spline as well as need to be actually instantly installed when you mount vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- conserve.If you are actually utilizing anecdote:.yarn add vue3-spline@latest.Develop a directory gotten in touch with plugins at the origin of your project.Create a report called Vue3Spline.client.ts inside the plugins listing.Incorporate the following code to the Vue3Spline.client.ts documents.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).This should register as a worldwide part that you can easily name anywhere in your application under the tag.I would certainly suggest utilizing a moms and dad tag to make certain that the animation only bunches in on the customer side.
Github.