app').If you receive an error along with TS, try use( Vue3Spline, name: "Vue3Spline" ).To describe global components for Volar type-checking you will definitely need to have to incorporate:.// components.d.ts.state element '@vue/ runtime-core' export user interface GlobalComponents SplineAnimation: typeof bring in(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed rename component to use:.app.use( Vue3Spline, label: 'SplineAnimation')// usage in layout.name string (nonpayment: 'Vue3Spline') - set customized component label.As an alternative you may also import the element locally.import Vue3Spline from 'vue3-spline'.export default elements: Vue3Spline,.,.You can easily then use the element in your template.
Nuxt 3.This is still experimental. Will definitely be updated very soon.You can install vue3-spline over yarn or even npm. spline-runtime is actually an addiction of vue3-spline and should be actually instantly installed when you mount vue3-spline.If you are making use of npm:.npm set up vue3-spline@latest-- spare.If you are actually using anecdote:.anecdote include vue3-spline@latest.Make a file gotten in touch with plugins at the origin of your job.Produce a report named Vue3Spline.client.ts inside the plugins directory site.Include the adhering to code to the Vue3Spline.client.ts file.bring in Vue3Spline from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you get an error along with TS, make an effort make use of( Vue3Spline, name: "Vue3Spline" ).This should register as a worldwide part that you can easily refer to as anywhere in your app under the tag.I would suggest using a moms and dad tag to ensure that the computer animation simply lots in on the client edge.
Github.