According to docs, it should be as simple as doing:
{
accessorKey: "select",
size: 24,
header: ({ table }) => (
<Checkbox
checked={
table.getIsAllPageRowsSelected() ||
(table.getIsSomePageRowsSelected() && undefined)
}
onCheckedChange={(value) => table.toggleAllPageRowsSelected(!!value)}
aria-label="Vybrat vše"
/>
),
cell: ({ row }) => (
<Checkbox
checked={row.getIsSelected()}
onCheckedChange={(value) => row.toggleSelected(!!value)}
aria-label="Vybrat řádek"
/>
),
enableSorting: false,
enableHiding: false,
}
But it doesnt seem to do anything, I am using shadcn for core structure, but thats all. Width doestn seem to even apply to the td for example