From f851fbbcc9740bb70df1bf8338b0c8459a0ed132 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 8 Oct 2022 13:31:18 -0700 Subject: [PATCH] docs(pagination-nav): add more examples --- docs/src/pages/components/PaginationNav.svx | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/src/pages/components/PaginationNav.svx b/docs/src/pages/components/PaginationNav.svx index 079c5f3c..7ae8dd1d 100644 --- a/docs/src/pages/components/PaginationNav.svx +++ b/docs/src/pages/components/PaginationNav.svx @@ -5,8 +5,35 @@ ## Default +`PaginationNav` renders `10` items and does not loop by default. + +## 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