app').If you receive an inaccuracy along with TS, make an effort make use of( Vue3Spline, name: "Vue3Spline" ).To determine international elements for Volar type-checking you will require to incorporate:.// components.d.ts.declare component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename element to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in theme.name string (default: 'Vue3Spline') - set custom part name.Alternatively you can likewise import the part locally.import Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You can easily then use the element in your theme.
Nuxt 3.This is still speculative. Are going to be actually updated soon.You can install vue3-spline over yarn or even npm. spline-runtime is actually a reliance of vue3-spline and should be instantly put in when you mount vue3-spline.If you are making use of npm:.npm put up vue3-spline@latest-- conserve.If you are actually using yarn:.yarn add vue3-spline@latest.Create a directory gotten in touch with plugins at the origin of your project.Produce a file called Vue3Spline.client.ts inside the plugins directory.Incorporate the adhering to code to the Vue3Spline.client.ts report.bring in Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an inaccuracy along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).This need to enroll as a worldwide element that you may refer to as anywhere in your application under the tag.I would certainly recommend making use of a moms and dad tag to make sure that the animation simply loads know the customer edge.
Github.