Import
import {
Pagination ,
PaginationContent ,
PaginationEllipsis ,
PaginationItem ,
PaginationLink ,
PaginationNext ,
PaginationPrevious
} from '@strongtie/design-system/pagination' ;
Usage
< Pagination >
< PaginationContent >
< PaginationItem >
< PaginationPrevious />
</ PaginationItem >
< PaginationItem >
< PaginationLink isActive > 1 </ PaginationLink >
</ PaginationItem >
< PaginationItem >
< PaginationLink > 2 </ PaginationLink >
</ PaginationItem >
< PaginationItem >
< PaginationNext />
</ PaginationItem >
</ PaginationContent >
</ Pagination >
role
string
default: "navigation"
The ARIA role for the pagination navigation.
If true, the link represents the current active page.
Usage Examples Basic
With Ellipsis
Disabled States
Controlled Example
< Pagination >
< PaginationContent >
< PaginationItem >
< PaginationPrevious />
</ PaginationItem >
< PaginationItem >
< PaginationLink isActive > 1 </ PaginationLink >
</ PaginationItem >
< PaginationItem >
< PaginationLink > 2 </ PaginationLink >
</ PaginationItem >
< PaginationItem >
< PaginationLink > 3 </ PaginationLink >
</ PaginationItem >
< PaginationItem >
< PaginationNext />
</ PaginationItem >
</ PaginationContent >
</ Pagination >
Styling Classes The following CSS classes are applied by the Pagination components:
pagination – Root navigation container with appropriate ARIA attributes
pagination-content – Unordered list container for pagination items
pagination-item – Individual list item wrapper for each pagination element
pagination-link – Button element for page numbers and navigation
pagination-link.active – Active/current page styling
pagination-previous – Previous page navigation button
pagination-next – Next page navigation button
pagination-ellipsis – Ellipsis indicator for truncated page ranges
pagination-icon – Icon styling for navigation arrows and ellipsis
For more examples, visit the Storybook . < StudsPagination
PageSize = "10"
Count = "100"
CurrentPage = "0"
PageChanged = " @ OnPageChanged "
PageSizeOptions = " @( new int [] { 10 , 25 , 50 , 100 } ) "
/>
@code {
void OnPageChanged ( PagerEventArgs args )
{
// Handle page change
Console . WriteLine ( $"Page changed to: { args . NewPageIndex }" );
}
}
FirstPageTitle
string
default: "First page"
Gets or sets the pager’s first page button’s title attribute.
FirstPageAriaLabel
string
default: "Go to first page."
Gets or sets the pager’s first page button’s aria-label attribute.
Gets or sets the pager’s optional previous page button’s label text.
PrevPageTitle
string
default: "Previous page"
Gets or sets the pager’s previous page button’s title attribute.
PrevPageAriaLabel
string
default: "Go to previous page."
Gets or sets the pager’s previous page button’s aria-label attribute.
LastPageTitle
string
default: "Last page"
Gets or sets the pager’s last page button’s title attribute.
LastPageAriaLabel
string
default: "Go to last page."
Gets or sets the pager’s last page button’s aria-label attribute.
Gets or sets the pager’s optional next page button’s label text.
NextPageTitle
string
default: "Next page"
Gets or sets the pager’s next page button’s title attribute.
NextPageAriaLabel
string
default: "Go to next page."
Gets or sets the pager’s next page button’s aria-label attribute.
Gets or sets the pager’s numeric page number buttons’ title attributes.
PageAriaLabelFormat
string
default: "Go to page {0}."
Gets or sets the pager’s numeric page number buttons’ aria-label attributes.
Gets or sets the page size (number of items per page).
Gets or sets the page size changed callback.
Gets or sets the available page size options for the dropdown.
PageSizeText
string
default: "items per page"
Gets or sets the page size description text.
Gets or sets the maximum number of page number buttons to display.
Gets or sets the total number of items across all pages.
Gets or sets the current page index (0-based).
Gets or sets a value indicating whether pager is visible even when there’s not enough data for paging.
PageChanged
EventCallback<PagerEventArgs>
Gets or sets the callback invoked when the current page changes.
Gets or sets the number of sibling pages to show around the current page.
Attributes
Dictionary<string, object>
Specifies additional custom attributes that will be rendered by the component.
MouseEnter
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse enters an item.
MouseLeave
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Culture
CultureInfo
default: "CultureInfo.CurrentCulture"
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
Usage Examples Basic
With Page Size Options
With Event Handling
Custom Labels
Large Dataset
< StudsPagination
PageSize = "10"
Count = "100"
CurrentPage = "0"
/>
Methods GoToPage(int page, bool forceReload = false)
Navigates to the specified page (0-based index).
FirstPage(bool forceReload = false)
Navigates to the first page.
Navigates to the previous page.
Navigates to the next page.
Navigates to the last page.
Reloads the current page and recalculates pagination.
Styling Classes The following CSS classes are applied by the Pagination component:
pagination – Root pagination container
pagination-items – Container for all pagination navigation items
pagination-item – Individual pagination item (page numbers, prev/next buttons)
pagination-item.-prev – Previous page button styling
pagination-item.-next – Next page button styling
pagination-item.-page – Page number button styling
pagination-item.-active – Active/current page styling
pagination-item.-disabled – Disabled state for boundary pages
pagination-item.-focused – Focused state for keyboard navigation
pagination-item-icon – Icon styling for navigation arrows
pagination-item-label – Text label styling for prev/next buttons
pagination-item-ellipsis – Ellipsis indicator for truncated ranges
pagination-pagesize-selector – Page size dropdown styling
pagination-pagesize-text – Page size description text styling
For more examples, visit the Storybook .