Component packs › Tabula › Column Resize

Column Resize

Drag an edge to resize 1:1 (double-click fits the content); drag a header and the column lifts while the others slide out of its way.

Column Resize is a column layout from Tabula, a component pack with 8 components: Data table components where rows move to their new places. Price: $2 for the whole pack.

Built with: resize + reorder, fit to content, Alt/Shift arrows.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Column Resize props

PropTypeDefaultDescription
rowsTabulaRow[]
onChange(columns: { key: string; width: number }[]) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: resizes and reorders until touched.

Methods on the ref

Use it in React

import ColumnResize from './ColumnResize';

<ColumnResize />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Tabula

Good for: Data tables.