app').If you get an inaccuracy with TS, try make use of( Vue3Spline, name: "Vue3Spline" ).To determine global parts for Volar type-checking you are going to need to include:.// components.d.ts.state element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to use:.app.use( Vue3Spline, name: 'SplineAnimation')// use in template.label strand (default: 'Vue3Spline') - set custom-made element label.Alternatively you may also import the part regionally.import Vue3Spline from 'vue3-spline'.export default components: Vue3Spline,.,.You can at that point use the component in your theme.
Nuxt 3.This is still speculative. Will certainly be updated soon.You can easily mount vue3-spline over anecdote or even npm. spline-runtime is actually an addiction of vue3-spline as well as ought to be automatically installed when you set up vue3-spline.If you are making use of npm:.npm put up vue3-spline@latest-- save.If you are using anecdote:.anecdote add vue3-spline@latest.Make a directory gotten in touch with plugins at the root of your venture.Produce a documents called Vue3Spline.client.ts inside the plugins directory.Add the observing code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export default defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get a mistake along with TS, attempt make use of( Vue3Spline, label: "Vue3Spline" ).This should enroll as a global component that you may refer to as anywhere in your app under the tag.I will advise making use of a moms and dad tag to guarantee that the computer animation simply loads know the client side.
Github.