-
-
Notifications
You must be signed in to change notification settings - Fork 11
Getting Started
Skayo edited this page Dec 14, 2020
·
6 revisions
If you're using this component in a Sapper application, make sure to install the package to
devDependencies
!
More Details
With npm:
$ npm install svelte-infinite-loading
With yarn:
$ yarn add svelte-infinite-loading
With pnpm (recommended):
$ npm i -g pnpm
$ pnpm install svelte-infinite-loading
From CDN (via unpkg):
<!-- UMD -->
<script src="https://unpkg.com/svelte-infinite-loading@^1/dist/svelte-infinite-loading.js"></script>
<!-- ES Module -->
<script src="https://unpkg.com/svelte-infinite-loading@^1/dist/svelte-infinite-loading.mjs"></script>
Just import it as a svelte component:
<script>
import InfiniteLoading from 'svelte-infinite-loading';
</script>
<div>
{#each list as item}
<!-- List Items -->
{/each}
<InfiniteLoading />
</div>
Released under the MIT License | Made with ♥ by Skayo