API Reference
Column Options
All the column options that can be used in Shadcn Table
Many of the column options you can pass here are the same as the ones that you can pass to the TanStack Table v9 ColumnDefs
Here is a list of all the column options you can specify in a column definition.
const columns = useMemo(
() => [
{
accessorKey: 'name',
header: 'Name',
// All of the options you can specify here
},
],
[],
);
const table = useShadcnTable({ columns, data });
return <ShadcnTable table={table} />;Wanna see the source code for this table? Check it out down below!