API Pagination
page: number
Active page numberany number
total: number
Total itemsany number
limit: number
Limit items per pageany number
rest: number
Links to pages to be shownany number
perpage: boolean
Select limit per pagetrue | false
Add a container element with the pagination class. And add child elements with the page-item class. The page-item with the active class will be highlighted. You can add the disabled class to the page-item to have unclickable page links.
<script>
import { Pagination } from 'svelte-spectre'
let page
</script>
<Pagination total={1500} limit={10} rest={4} perpage={true} bind:page />