Component packs › Tabula › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
rows | TabulaRow[] | ||
onChange | (columns: { key: string; width: number }[]) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: resizes and reorders until touched. |
destroy(): voidimport ColumnResize from './ColumnResize';
<ColumnResize />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Data tables.