22
33[](https://www.npmjs.com/package/svelte-infinite-scroll) • [](https://github.com/andrelmlins/svelte-infinite-scroll/blob/master/LICENSE) • [](https://travis-ci.com/andrelmlins/svelte-infinite-scroll) • [](https://app.netlify.com/sites/svelte-infinite-scroll/deploys) • [](https://lgtm.com/projects/g/andrelmlins/svelte-infinite-scroll/context:javascript) • [](https://gitter.im/svelte-infinite-scroll/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
44
5- Infinite Scroll Component to Svelte
5+ Infinite Scroll Component to Svelte.
66
77## Installation
88
9- ```
9+ ``` bash
1010npm i svelte-infinite-scroll
11- // OR
11+
12+ // or
13+
1214yarn add svelte-infinite-scroll
1315```
1416
15- < em >Note : to use this library in sapper , install as devDependency. See the [ link] ( https://github.com/sveltejs/sapper-template#using-external-components ) .</ em >
17+ _ Note : to use this library in Sapper applications , install as devDependency. Take a look at [ this link] ( https://github.com/sveltejs/sapper-template#using-external-components ) ._
1618
17- ## Demo [ Link ] ( https://svelte-infinite-scroll.netlify.com/ )
19+ ## Demo [ link ] ( https://svelte-infinite-scroll.netlify.com/ )
1820
1921Local demo:
2022
21- ```
23+ ``` bash
2224git clone https://github.com/andrelmlins/svelte-infinite-scroll.git
2325cd svelte-infinite-scroll
2426npm install && npm run dev
2527```
2628
2729## Examples
2830
29- An example of how to use the library
31+ An example of how to use the library:
3032
3133``` js
3234< script>
33- import SvelteInfiniteScroll from " svelte-infinite-scroll" ;
35+ import InfiniteScroll from " svelte-infinite-scroll" ;
3436 import allCountries from " ./countries.js" ;
3537
3638 let page = 0 ;
@@ -55,11 +57,11 @@ An example of how to use the library
5557 {#each countries as country}
5658 < li> {country .name }< / li>
5759 {/ each}
58- < SvelteInfiniteScroll threshold= {100 } on: loadMore= {() => page++ } / >
60+ < InfiniteScroll threshold= {100 } on: loadMore= {() => page++ } / >
5961< / ul>
6062```
6163
62- ### Another Examples
64+ ### Another examples
6365
6466- Infinite scroll with requests | [ Link] ( https://svelte.dev/repl/4863a658f3584b81bbe3d9f54eb67899 ) | [ Author] ( https://github.com/kilianso )
6567- Infinite scroll reverse | [ Link] ( https://svelte.dev/repl/36d00aa55c7c4ff68914ce314f4e1ca4 ) | [ Author] ( https://github.com/andrelmlins )
@@ -83,9 +85,9 @@ Component props:
8385| ---------- | ----------------------------------------- |
8486| ` loadMore ` | Tells you if there are more items to load |
8587
86- ## NPM Statistics
88+ ## NPM statistics
8789
88- Download stats for this NPM package
90+ Download stats for this NPM package.
8991
9092[ ![ NPM] ( https://nodei.co/npm/svelte-infinite-scroll.png )] ( https://nodei.co/npm/svelte-infinite-scroll/ )
9193
0 commit comments