Skip to content

Commit

Permalink
[Pagination] Pass current pagination value as slot prop to simplify c…
Browse files Browse the repository at this point in the history
…reating custom controls
  • Loading branch information
techniq committed Jun 21, 2024
1 parent 6adc3f2 commit 671fc2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-dodos-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

[Pagination] Pass current pagination value as slot prop to simplify creating custom controls
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/components/Paginate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
$: pageData = $pagination.slice(data);
</script>

<slot {pagination} {pageData} />
<slot {pagination} {pageData} current={$pagination} />

0 comments on commit 671fc2a

Please sign in to comment.