app').If you obtain a mistake with TS, make an effort use( Vue3Spline, title: "Vue3Spline" ).To specify international parts for Volar type-checking you will certainly need to include:.// components.d.ts.announce element '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename part to make use of:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in layout.title string (default: 'Vue3Spline') - set custom part title.As an alternative you can easily also import the element locally.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You can easily then utilize the part in your theme.
Nuxt 3.This is still speculative. Will certainly be actually upgraded very soon.You may mount vue3-spline over yarn or even npm. spline-runtime is a reliance of vue3-spline as well as ought to be actually automatically set up when you mount vue3-spline.If you are actually making use of npm:.npm put in vue3-spline@latest-- spare.If you are utilizing anecdote:.yarn add vue3-spline@latest.Make a directory phoned plugins at the root of your project.Generate a data called Vue3Spline.client.ts inside the plugins listing.Include the adhering to code to the Vue3Spline.client.ts data.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain an error with TS, attempt usage( Vue3Spline, title: "Vue3Spline" ).This ought to enroll as a worldwide part that you may refer to as anywhere in your app under the tag.I would certainly advise making use of a parent tag to make certain that the computer animation only loads with it the client edge.
Github.