Infinite scroller component for vuejs-3
npm install v3-infinite-loadingAn infinite scroll component compatible with vue.js 3 and vite, to help you implement an infinite scroll list more easily.
- Lightweight and simple to use
- Internal spinner
- 2-directional support (Top and bottom)
``Bash`
npm install v3-infinite-loading
register globally:
`JavaScript
import InfiniteLoading from "v3-infinite-loading";
import "v3-infinite-loading/lib/style.css"; // required if you're not going to override default slots
const app = createApp(App);
app.component("infinite-loading", InfiniteLoading);
app.mount("#app");
`
usage in SFC with script setup:
`html
`
`html``
rel="stylesheet"
href="https://unpkg.com/v3-infinite-loading@1.3.2/lib/style.css"
/>
Documentation available on v3-infinite-loading Netlify
Check out live demo v3-infinite-loading-demo Netlify
Detailed changes for each release are documented in the release notes.
Comming soon
The MIT License (MIT)