app').If you obtain an error with TS, make an effort usage( Vue3Spline, label: "Vue3Spline" ).To describe international elements for Volar type-checking you will need to add:.// components.d.ts.announce component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to utilize:.app.use( Vue3Spline, title: 'SplineAnimation')// use in template.name cord (default: 'Vue3Spline') - specified custom-made part name.Alternatively you can also import the part regionally.import Vue3Spline coming from 'vue3-spline'.export default parts: Vue3Spline,.,.You can at that point use the element in your layout.
Nuxt 3.This is actually still speculative. Will be upgraded soon.You may set up vue3-spline over anecdote or even npm. spline-runtime is actually a dependence of vue3-spline as well as must be instantly put in when you set up vue3-spline.If you are making use of npm:.npm put in vue3-spline@latest-- save.If you are actually using anecdote:.yarn incorporate vue3-spline@latest.Create a file gotten in touch with plugins at the root of your task.Produce a documents called Vue3Spline.client.ts inside the plugins listing.Add the following code to the Vue3Spline.client.ts documents.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you receive an inaccuracy with TS, try usage( Vue3Spline, name: "Vue3Spline" ).This must register as a global part that you can name throughout your application under the tag.I will recommend making use of a parent tag to make sure that the animation only tons in on the client edge.
Github.