Skip to main content

Rows

Selection, expansion, pinning, sizing and sticky header.

Row selection — checkboxes for bulk actions

Row features cover selection, expansion and vertical layout — pinning rows, resizing them, master-detail panels and a sticky header. These default off (they add chrome or interaction), so switch on only what a given grid needs. Sticky header and row virtualization solve the same "long grid" problem from different angles — see Performance.

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' },
]

export default function App() {
return (
<BstTableMui data={seed} columns={columns} getRowId={(r) => r.id}
enableRowSelection showSelectionInfo />
)
}
Loading live example…
FeatureFlagDefault
Auto row heightenableAutoRowHeightfalse
Master-detailenableExpandingfalse
Row pinningenableRowPinningfalse
Row resizeenableRowResizefalse
Sticky-header viewportenableStickyHeaderfalse