A minimal Vite + React + TypeScript demo using TanStack Table, to show a column-spanning example for when you want to line up vertically something that is in the middle of the column’s cells.
Aligning a decimal point, or a currency symbol, or a date-time separating space, or some other content in the middle of table column, can be a little tricky sometimes.
- Blogpost: https://www.kevinashworth.com/2024-09-09-tanstack-table-colspan/
- StackBlitz: https://stackblitz.com/~/github.com/kevinashworth/vite-tanstack-table-columns
npm install
npm run devOpen http://localhost:5173 to view the demo.