# Vue Pagination - Flowbite #### Use the Tailwind CSS pagination element to indicate a series of content across various pages based on multiple styles and sizes The pagination component can be used to navigate across a series of content and data sets for various pages such as blog posts, products, and more. You can use multiple variants of this component with or without icons and even for paginating table data entries. ## Default pagination Use the following list of pagination items based on two sizes powered by Tailwind CSS utility classes to indicate a series of content for your website. ```vue ``` ## Pagination with icons The following pagination component example shows how you can use SVG icons instead of text to show the previous and next pages. ```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 ``` ## Previous and next ```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 ``` ## Pagination with custom labels ```vue ``` ## Slots example ```vue ``` ## API ### Props | Name | Values | Default | |---------------------------|-------------------------------------|--------------| | modelValue | `number` | `1` | | totalPages | `number` | `10` | | perPage | `number` | `10` | | totalItems | `number` | `10` | | layout | `pagination`, `table`, `navigation` | `pagination` | | showIcons | `boolean` | `false` | | sliceLength | `number` | `2` | | previousLabel | `string` | `Previous` | | nextLabel | `string` | `Next` | | enableFirstAndLastButtons | `boolean` | `false` | | showLabels | `boolean` | `true` | | large | `boolean` | `false` | ### Events | Name | Description | |----------------------|----------------------| | `update:model-value` | Current page changed | | `page-changed` | Current page changed | ### Slots | Name | Description | |--------------|-------------------------| | start | content before buttons | | end | content after buttons | | first-button | first button content | | last-button | last button content | | prev-button | previous button content | | next-button | next button content | | prev-icon | previous icon slot | | next-icon | next icon slot | | page-button | page button slot |