From 9c5e52b162137c5049bffd465872b18407753655 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 8 Oct 2022 13:34:50 -0700 Subject: [PATCH] docs(pagination-nav): add reactive example --- docs/src/pages/components/PaginationNav.svx | 6 ++++++ .../PaginationNav/PaginationNavReactive.svelte | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docs/src/pages/framed/PaginationNav/PaginationNavReactive.svelte diff --git a/docs/src/pages/components/PaginationNav.svx b/docs/src/pages/components/PaginationNav.svx index 7ae8dd1d..690921fc 100644 --- a/docs/src/pages/components/PaginationNav.svx +++ b/docs/src/pages/components/PaginationNav.svx @@ -9,6 +9,12 @@ +## Reactive example + +Use the `page` prop to bind to the current page number. + + + ## Total Use the `total` prop to specify the number of pages. 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}