stoneC0der / vue3-infinite-loading

Infinite scroll component compatible with vuejs-3 and vitejs

Home Page:https://vue3-infinite-loading.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro

An infinite scroll component compatible with vue.js 3 and vite, to help you implement an infinite scroll list more easily.

Features

  • Lightweight and simple to use
  • Internal spinner
  • 2-directional support (Top and bottom)

Install

npm install v3-infinite-loading

Basic usage

register globally:

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:

<script setup>
  import InfiniteLoading from "v3-infinite-loading";
  import "v3-infinite-loading/lib/style.css"; //required if you're not going to override default slots
</script>

<template>
  <InfiniteLoading />
</template>

Usage & Guide

Documentation available on v3-infinite-loading Netlify

Check out live demo v3-infinite-loading-demo Netlify

Changelog

Detailed changes for each release are documented in the release notes.

Contribution

Comming soon

Licence

The MIT License (MIT)

About

Infinite scroll component compatible with vuejs-3 and vitejs

https://vue3-infinite-loading.netlify.app/


Languages

Language:Vue 75.5%Language:JavaScript 22.2%Language:HTML 2.4%