app').If you get an error along with TS, try usage( Vue3Spline, title: "Vue3Spline" ).To describe worldwide elements for Volar type-checking you will need to have to add:.// components.d.ts.state component '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If required rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// usage in theme.title cord (nonpayment: 'Vue3Spline') - prepared customized part label.Conversely you may likewise import the component regionally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You may then utilize the part in your design template.
Nuxt 3.This is actually still speculative. Will be actually updated quickly.You can put in vue3-spline over anecdote or even npm. spline-runtime is a dependency of vue3-spline as well as should be actually automatically put in when you put in vue3-spline.If you are making use of npm:.npm install vue3-spline@latest-- spare.If you are making use of anecdote:.anecdote incorporate vue3-spline@latest.Produce a folder contacted plugins at the root of your venture.Generate a file named Vue3Spline.client.ts inside the plugins listing.Incorporate the adhering to code to the Vue3Spline.client.ts report.import Vue3Spline coming from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you acquire an inaccuracy along with TS, try make use of( Vue3Spline, label: "Vue3Spline" ).This should enroll as a global part that you can easily call throughout your app under the tag.I would recommend using a parent tag to make sure that the animation just lots in on the customer side.
Github.