TidalUI

Pagination preview

Page navigation, page size and direct page entry.

pro · Navigation · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/pagination

Import components/ui/tidal.css, components/ui/pagination.css. Wrap installed components in tidal-scope.

Preview

Pagination component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/pagination.css";
import{TidalPagination}from"./components/ui/pagination";
export default()=><div className="tidal-scope"><TidalPagination onPageChange={() => {}} page={1} pageCount={1}/></div>;

API and props

TidalPagination.onPageChange (required)
(page: number) => void

Callback invoked when the page change interaction is proposed.

TidalPagination.page (required)
number

Required page value accepted by this exported component.

TidalPagination.pageCount (required)
number

Required page count value accepted by this exported component.

TidalPagination.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalPagination.getHref
((page: number) => string) | undefined

Optional get href value accepted by this exported component.

TidalPagination.label
string | undefined

Optional label value accepted by this exported component.

TidalPagination.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

TidalPagination.windowSize
number | undefined

Optional window size value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas