app').If you acquire an error with TS, make an effort use( Vue3Spline, name: "Vue3Spline" ).To define worldwide parts for Volar type-checking you are going to 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 element to make use of:.app.use( Vue3Spline, title: 'SplineAnimation')// use in theme.title strand (default: 'Vue3Spline') - prepared custom part label.Conversely you may also import the element locally.bring in Vue3Spline coming from 'vue3-spline'.export nonpayment parts: Vue3Spline,.,.You can easily at that point make use of the element in your theme.
Nuxt 3.This is still experimental. Will definitely be actually updated quickly.You may mount vue3-spline over anecdote or even npm. spline-runtime is actually a dependency of vue3-spline and must be instantly installed when you put up vue3-spline.If you are making use of npm:.npm set up vue3-spline@latest-- save.If you are actually using yarn:.yarn add vue3-spline@latest.Produce a directory phoned plugins at the root of your task.Create a report called Vue3Spline.client.ts inside the plugins directory site.Add the observing code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake with TS, try use( Vue3Spline, label: "Vue3Spline" ).This should sign up as a worldwide element that you can easily call throughout your application under the tag.I would recommend utilizing a moms and dad tag to ensure that the computer animation just loads with it the customer side.
Github.