Getting Started
Foundations
Components
Search for a command to run...
Pagination breaks large datasets or content into discrete pages, allowing users to navigate forward and backward through the pages. It helps manage overwhelming amounts of content by displaying a manageable subset at a time. Pagination is commonly used in tables, search results, galleries, or any interface displaying large lists of items.
The component provides accessible navigation with proper ARIA labels and keyboard support.
import { Pagination } from "@strongtie/design-system/pagination"This module exports the following components:
PaginationPaginationContentPaginationEllipsisPaginationItemPaginationLinkPaginationNextPaginationPrevious<PaginationLink>| Prop | Type | Default | Description |
|---|---|---|---|
isActive | boolean | false | Whether this page link represents the currently active page. |
<PaginationNext>| Prop | Type | Default | Description |
|---|---|---|---|
isActive | boolean | false | Whether this page link represents the currently active page. |
<PaginationPrevious>| Prop | Type | Default | Description |
|---|---|---|---|
isActive | boolean | false | Whether this page link represents the currently active page. |
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
paginationpagination-contentpagination-ellipsispagination-itempagination-linkOther CSS classes used by this component:
activepaginationpagination-contentpagination-ellipsispagination-iconpagination-itempagination-linkpagination-nextpagination-previoussr-onlyEnsure proper accessibility attributes are added when implementing this component.