Data
TwPagination
TwPagination is a Blazor pagination component. Bind ActivePage and PageSize, set TotalPages and ShowPageSize to split content across pages.
Last updated
Basic Usage
Bind
ActivePage to track the current page as the user clicks between pages. TotalPages controls how many pages are available.Page 1 of 10
Responding to Page Changes
Use
ActivePageChanged instead of two-way binding when you need to run logic - such as loading new data - whenever the page changes.Showing results for page 1.
Dense
Set
Dense to render smaller, more compact buttons, useful for tight layouts such as beneath a table. The optional page size selector becomes dense too.Page Size Selector
Set
ShowPageSize to add an optional "items per page" dropdown alongside the pagination controls. Bind PageSize and customize PageSizeOptions to control the available choices.Page 1 of 12, showing 10 items per page.
Theme Configuration
Styling is controlled by
TwBlazorTheme.Components (a TwPaginationTheme), configured via the
AddTwBlazor() options callback described on the Get Started page.
Every property is a set of Tailwind classes, so changes are picked up by your own Tailwind build.
Full reference: TwPaginationTheme on the API docs.