Figma component
Overview
Pagination table adds pagination to data tables. It combines navigation controls, the current page, the total number of rows and a page size selector in one bar.
Key features
- Controls: first, previous, next and last page.
- Page indicator and row count with customisable labels.
- Page size selector to change the number of rows per page.
- Themes: Spark and Ocean, light and dark.
Anatomy
- First / last page buttons.
- Previous / next page buttons.
- Page indicator: current page and number of pages.
- Row count: total number of rows.
- Page size selector: rows per page.
Properties
|
Figma |
Code |
Notes |
|---|---|---|
|
Show controls |
hide-controls |
Hides all arrow controls. Default: false (visible). |
|
Has first/last (on Controls) |
hide-first-last |
Hides first and last page buttons. |
|
Has previous/next (on Controls) |
hide-prev-next |
Hides previous and next page buttons. |
|
Has info 1, Text |
label-page |
Default: Page {pageIndex} of {pageCount}. |
|
Has info 2, Text |
label-total |
Default: Total: {rowCount} rows. |
|
Has page size selector |
page-size, label-page-size-option |
Rows per page (default 10). Option label default: {pageSize} per page. |
|
— |
page-index |
Current page, 0-based in code; shown 1-based to users. Default: 0. |
|
— |
page-count, row-count |
Total pages and total rows. Default: 0. |
|
— |
pageIndexChanged, pageSizeChanged |
Events emitted when the page or the page size changes. |
Look and feel
Options
Show only the parts the table needs: without page size selector, without counts, or without controls.
Themes
Spark and Ocean, in light and dark mode.
Behavior
- Place it directly below the table it controls.
- First/previous are disabled on the first page; next/last on the last page.
- Labels support placeholders, so they can be translated: {pageIndex}, {pageCount}, {rowCount}, {pageSize}.
Accessibility
- Icon buttons have accessible names (first, previous, next, last page).
- Announce the page change to screen readers, for example through the page indicator.
- The page size selector has a visible or accessible label.
Usage
Show the controls and the counts so users know where they are.
Don't hide all controls: users can't move between pages.
Related
- Datatable: the table this component is built for.
- Pagination nav: for lists and search results outside tables.
Links
The Figma file contains the latest UI designs, while the links to Web Component, Blazor, Angular, React, and VueJS provide a live demo of the component.
Feedback
Have feedback, an idea, or a bug to report? Head over to our Contributions page.