app').If you acquire an error with TS, attempt usage( Vue3Spline, name: "Vue3Spline" ).To define global components for Volar type-checking you will definitely need to incorporate:.// components.d.ts.state element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename part to make use of:.app.use( Vue3Spline, name: 'SplineAnimation')// use in design template.title cord (default: 'Vue3Spline') - specified customized part name.Conversely you can easily also import the element locally.import Vue3Spline coming from 'vue3-spline'.export default components: Vue3Spline,.,.You may after that use the part in your design template.
Nuxt 3.This is actually still experimental. Are going to be actually updated soon.You can install vue3-spline over yarn or npm. spline-runtime is actually a dependency of vue3-spline and should be immediately set up when you put in vue3-spline.If you are making use of npm:.npm put in vue3-spline@latest-- spare.If you are actually utilizing yarn:.anecdote incorporate vue3-spline@latest.Develop a directory called plugins at the root of your project.Make a file called Vue3Spline.client.ts inside the plugins directory site.Include the complying with code to the Vue3Spline.client.ts documents.import Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an error with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).This ought to sign up as a worldwide element that you may refer to as throughout your application under the tag.I would advise utilizing a parent tag to guarantee that the computer animation merely lots know the client edge.
Github.