app').If you receive an error along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).To determine international elements for Volar type-checking you will certainly require to incorporate:.// components.d.ts.state module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// make use of in design template.name cord (default: 'Vue3Spline') - prepared personalized part name.Alternatively you can also import the element in your area.import Vue3Spline from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can then utilize the element in your design template.
Nuxt 3.This is actually still speculative. Will definitely be improved quickly.You may set up vue3-spline over yarn or even npm. spline-runtime is an addiction of vue3-spline as well as need to be immediately put in when you set up vue3-spline.If you are making use of npm:.npm set up vue3-spline@latest-- spare.If you are actually utilizing yarn:.yarn include vue3-spline@latest.Generate a folder phoned plugins at the root of your task.Develop a data called Vue3Spline.client.ts inside the plugins listing.Add the complying with code to the Vue3Spline.client.ts file.import Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).This must register as a worldwide component that you can name anywhere in your application under the tag.I will highly recommend utilizing a moms and dad tag to guarantee that the animation only loads in on the client edge.
Github.