diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index fe1830a..649fdf6 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -44,6 +44,7 @@ function getComponents() {
{ text: 'Card', link: 'components/card.md' },
{ text: 'Carousel', link: 'components/carousel' },
{ text: 'Dropdown', link: '/components/dropdown' },
+ { text: 'Pagination', link: 'components/pagination' },
{ text: 'Progress', link: 'components/progress' },
{ text: 'Rating', link: 'components/rating' },
{ text: 'Spinner', link: '/components/spinner' },
@@ -57,7 +58,6 @@ function getComponents() {
{ text: 'Navbar', link: 'components/navbar' },
{ text: '- Footer', link: 'components/footer' },
- { text: '- Pagination', link: 'components/pagination' },
{ text: '- Sidebar', link: 'components/sidebar' },
]
}
diff --git a/docs/components/pagination.md b/docs/components/pagination.md
index c4388f2..f752709 100644
--- a/docs/components/pagination.md
+++ b/docs/components/pagination.md
@@ -1,15 +1,119 @@
# Vue Pagination Component - Flowbite
+## Default pagination
+
```vue
-
+
+
+```
+
+
+## Default with custom length
+You can use your own pages count in the row by passing props: `slice-length`
+This prop means left side and right side pages row slicing. In the example it has value `4`. So row length will be 4 + 1 + 4 pages - 9 pages.
+
+```vue
+
+
+
```
-
+
+
+## Pagination with navigation layout
+
+```vue
+
+
+
+
+
+
+```
+
+
+
+## Pagination with table layout
+To use that layout you have to pass required props:
+- `per-page`: it's items count displayed on each page.
+- `total-items`: it's the total items count.
+
+And there you don't need to use `total-pages` prop.
+
+```vue
+
+
+