Skip to main content

Pagination bar

Prop showPagination — adapter chrome, default true.

Guide

When to use it

On by default — the footer bar with page controls and the page-size select.

How it works

Pure chrome; it renders the bar and follows the pagination behaviour.

Gotchas

  • No-op when pagination={false}.
  • Hiding the bar (showPagination={false}) doesn't disable paging — the grid still pages by pageSize; use pagination={false} to actually show every row.

Live example

Pagination — page-size and page controls in the footer

Example source
import React from 'react'
import { BstTableMui } from '@bloomskill/table-mui'
import type { BstTableColumn } from '@bloomskill/table-engine'
import '@bloomskill/table-engine/styles.css'
type Row = { id: string; name: string; team: string; role: string; score: number }
const seed: Row[] = [
{ id: '1', name: 'Ada Lovelace', team: 'Platform', role: 'Engineer', score: 92 },
{ id: '2', name: 'Alan Turing', team: 'Research', role: 'Scientist', score: 88 },
{ id: '3', name: 'Grace Hopper', team: 'Platform', role: 'Engineer', score: 95 },
{ id: '4', name: 'Katherine J.', team: 'Research', role: 'Analyst', score: 90 },
{ id: '5', name: 'Edsger Dijkstra', team: 'Platform', role: 'Architect', score: 84 },
]
const columns: BstTableColumn<Row>[] = [
{ id: 'name', accessorKey: 'name', header: 'Name' },
{ id: 'team', accessorKey: 'team', header: 'Team' },
{ id: 'role', accessorKey: 'role', header: 'Role' },
{ id: 'score', accessorKey: 'score', header: 'Score', sortFn: 'basic' },
]
const many: Row[] = Array.from({ length: 23 }, (_, i) => ({ ...seed[i % 5], id: String(i + 1) }))
export default function App() {
return (
<BstTableMui data={many} columns={columns} getRowId={(r) => r.id}
pagination={{ pageSize: 5 }} showPagination pageSizeOptions={[5, 10, 'all']} />
)
}
Loading live example…

Overview

Layershow* (chrome, resolved in the adapter)
Typeboolean
Defaulttrue
Maps toadapter footer
Status✅ done

Enable it

<BstTableMui
data={rows}
columns={columns}
pagination // chrome is a no-op without its behaviour flag
showPagination
/>

Swap BstTableMui for BstTableShadcn (and the CSS import) for the shadcn skin — same props.

Behavior & interactions

  • Requires pagination to be on — this flag is a no-op otherwise.