Description
Description
Hi,
I'm just trying migrate to the v3 table component but I'm kind of stuck while trying to apply the correct column widths to the columns which before (in v2) was possible via simple tailwind classes per column.
For example a table has an action button in the last column, so the column should only have the width of the icon of the button so that other columns have more space but the column width is automatically about four times the button's size by default instead.
The TanStack Table Docs state that individual column sizes must be applied manually which also seems right looking at the table component code if I didn't miss anything in that regard.
From my understanding the custom width styling must be applied to the th
/td
elements since every styling attempt inside the slots to make a column smaller (e.g. only 32px) did not work and only affected the content inside the header/cell slots.
Is there any way at the moment to set a custom width for specific columns with the current implementation of the table component?