Register vue3-seamless-scroll
mainYou can register the component globally in your main application file or locally within a specific .vue component.
// Global registration in main.js
import { createApp } from 'vue';
import App from './App.vue';
import vue3SeamlessScroll from "vue3-seamless-scroll";
const app = createApp(App);
app.use(vue3SeamlessScroll);
app.mount('#app');<script>
// Local registration in a .vue file
import { defineComponent } from "vue";
import { Vue3SeamlessScroll, VerticalScroll, HorizontalScroll } from "vue3-seamless-scroll";
export default defineComponent({
components: {
Vue3SeamlessScroll, // Supports both vertical and horizontal
VerticalScroll, // Vertical only
HorizontalScroll // Horizontal only
}
})
</script>