app').If you obtain a mistake along with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).To specify international elements for Volar type-checking you will require to add:.// components.d.ts.proclaim module '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to utilize:.app.use( Vue3Spline, name: 'SplineAnimation')// use in design template.title string (default: 'Vue3Spline') - established custom-made component name.Alternatively you may also import the element in your area.import Vue3Spline coming from 'vue3-spline'.export default components: Vue3Spline,.,.You can easily then make use of the element in your layout.
Nuxt 3.This is actually still speculative. Will definitely be actually upgraded quickly.You can easily set up vue3-spline over anecdote or npm. spline-runtime is actually a dependence of vue3-spline and should be instantly put in when you set up vue3-spline.If you are making use of npm:.npm put up vue3-spline@latest-- conserve.If you are actually making use of yarn:.anecdote include vue3-spline@latest.Develop a directory gotten in touch with plugins at the origin of your job.Generate a report named Vue3Spline.client.ts inside the plugins directory site.Incorporate 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 obtain an error with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).This must sign up as a worldwide component that you can name throughout your application under the tag.I will suggest using a moms and dad tag to make sure that the computer animation merely loads in on the client side.
Github.