diff --git a/docs/src/pages/components/PaginationNav.svx b/docs/src/pages/components/PaginationNav.svx index 079c5f3c..690921fc 100644 --- a/docs/src/pages/components/PaginationNav.svx +++ b/docs/src/pages/components/PaginationNav.svx @@ -5,8 +5,41 @@ ## Default +`PaginationNav` renders `10` items and does not loop by default. + +## Reactive example + +Use the `page` prop to bind to the current page number. + + + +## Total + +Use the `total` prop to specify the number of pages. + + + ## Loopable +Set `loop` to `true` for navigation to be looped. + + +## Shown + +If `total` is greater than `10`, the number of items shown will be truncated to `10`. + +Use `shown` to override the number of items shown. + + + +## Custom button text + +Use the `forwardText` and `backwardText` props to customize the button text. + + \ No newline at end of file diff --git a/docs/src/pages/framed/PaginationNav/PaginationNavReactive.svelte b/docs/src/pages/framed/PaginationNav/PaginationNavReactive.svelte new file mode 100644 index 00000000..8c98cf91 --- /dev/null +++ b/docs/src/pages/framed/PaginationNav/PaginationNavReactive.svelte @@ -0,0 +1,16 @@ + + + + +
+ +
+ +page: +{page}