app').If you acquire an inaccuracy with TS, attempt use( Vue3Spline, title: "Vue3Spline" ).To determine global parts for Volar type-checking you will certainly need to have to add:.// components.d.ts.announce component '@vue/ runtime-core' export interface GlobalComponents SplineAnimation: typeof import(' vue3-spline') [' Vue3Spline']export {-String.Split-|-}If needed to have rename component to use:.app.use( Vue3Spline, label: 'SplineAnimation')// make use of in design template.label string (default: 'Vue3Spline') - set personalized component title.Alternatively you can also import the part in your area.bring in Vue3Spline from 'vue3-spline'.export default parts: Vue3Spline,.,.You may at that point make use of the part in your theme.
Nuxt 3.This is still speculative. Will certainly be actually updated very soon.You can put up vue3-spline over anecdote or even npm. spline-runtime is actually an addiction of vue3-spline and also should be actually immediately mounted when you set up vue3-spline.If you are making use of npm:.npm set up vue3-spline@latest-- spare.If you are utilizing yarn:.anecdote add vue3-spline@latest.Create a directory contacted plugins at the root of your job.Make a data called Vue3Spline.client.ts inside the plugins listing.Add the observing code to the Vue3Spline.client.ts data.import Vue3Spline coming from 'vue3-spline'.export nonpayment defineNuxtPlugin(( nuxtApp) => nuxtApp.vueApp.use( Vue3Spline). ).If you obtain a mistake along with TS, try make use of( Vue3Spline, title: "Vue3Spline" ).This ought to register as a worldwide component that you can easily call anywhere in your app under the tag.I will encourage making use of a parent tag to make certain that the animation only loads in on the customer side.
Github.