Skip to content

Settings

Table pagination footer

Page controls beneath a table. Hides itself entirely when there is nothing to page through.
Available
Ports as-is

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Table pagination footer

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
page*number—Zero-based page index.
pageSize*number—Rows per page.
totalItems*number—Total rows across all pages — drives both the count line and the page maths.
onPageChange*(page: number) => void—Zero-based page index of the requested page.
itemNounstring"item"Singular noun for the count line. Defaults to "item".
itemNounPluralstring—Plural noun for the count line. Defaults to `${itemNoun}s`.
classNamestring—Undocumented — add TSDoc to the prop in the library.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/settings/TablePaginationFooter.tsx
Portability
Copies across unchanged — only the utils import path moves.
Notes
The purest and most reused piece in the settings area — four tables depend on it.