Skip to content

TableCellSlotProps

TableCellSlotProps = object

Defined in: packages/ui/src/types.ts:197

Props for the table cell plugin slot.

Renders a single cell (th or td) inside a TableRowSlotProps. Supports sortable column headers with directional indicators.

children: ReactNode

Defined in: packages/ui/src/types.ts:199

Cell content.


optional header: boolean

Defined in: packages/ui/src/types.ts:201

Whether this cell is a header cell (th vs td).


optional onSort: () => void

Defined in: packages/ui/src/types.ts:207

Handler called when the user clicks to sort by this column.

void


optional sortable: boolean

Defined in: packages/ui/src/types.ts:203

Whether clicking this cell triggers sorting.


optional sortDirection: "asc" | "desc" | null

Defined in: packages/ui/src/types.ts:205

Current sort direction for this column, or null if not sorted.