React table building blocks from the Ant Design ecosystem. Supports fixed headers, scrolling, expansion, virtualization, and TypeScript-first composition.
Overview
@rc-component/table provides low-level table primitives for React, maintained alongside Ant Design. Ant Design Table and other data-display UIs build on these pieces rather than reimplementing grid behavior.
The API covers columns, row keys, horizontal and vertical scroll, sticky headers, expandable rows, summary rows, empty states, and custom cell rendering. Virtual mode changes how off-screen expanded rows are mounted. A scrollTo method targets rows by index, key, or pixel offset with configurable alignment.
Column configuration includes fixed columns, ellipsis, alignment, colSpan and rowSpan via render callbacks, and header or cell custom props. Summary components can pin totals at the top or bottom of the grid.
The package stays framework-level and largely unstyled except bundled assets, so design systems can layer their own visuals. It ships as an npm module for import into React applications.
Key features
- Fixed and sticky headers
- Expandable row support
- Virtual table mode
- Summary row components
- Horizontal and vertical scroll
- TypeScript-oriented API
- Custom component overrides
- scrollTo row navigation
Use cases
- Ant Design table foundation
- Custom design system data grids
- Large scrollable datasets
- Expandable master-detail tables