app').If you obtain an error with TS, try usage( Vue3Spline, name: "Vue3Spline" ).To specify global components for Volar type-checking you are going to require to add:.// components.d.ts.state component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// make use of in theme.name cord (default: 'Vue3Spline') - prepared personalized component title.Additionally you can easily also import the element regionally.import Vue3Spline from 'vue3-spline'.export nonpayment components: Vue3Spline,.,.You may after that make use of the element in your design template.
Nuxt 3.This is still speculative. Will be actually upgraded soon.You may put in vue3-spline over anecdote or even npm. spline-runtime is an addiction of vue3-spline and need to be actually instantly put in when you put up vue3-spline.If you are actually using npm:.npm install vue3-spline@latest-- save.If you are making use of yarn:.yarn add vue3-spline@latest.Generate a folder phoned plugins at the origin of your task.Produce a report called Vue3Spline.client.ts inside the plugins directory site.Include the complying with code to the Vue3Spline.client.ts report.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake along with TS, make an effort usage( Vue3Spline, name: "Vue3Spline" ).This ought to enroll as a worldwide part that you can name throughout your app under the tag.I will recommend using a moms and dad tag to make certain that the animation simply tons know the client side.
Github.