@ackplus/react-tanstack-data-table
Version:
A powerful React data table component built with MUI and TanStack Table
30 lines • 1 kB
TypeScript
/**
* TableHeader Component
*
* Unified header component that combines:
* - Sortable functionality
* - Draggable column reordering
* - Column resizing
* - Pinning support
*/
import { ReactElement } from 'react';
import { TableHeadProps, TableRowProps, TableCellProps, SxProps } from '@mui/material';
export interface TableHeaderProps extends TableHeadProps {
draggable?: boolean;
enableColumnResizing?: boolean;
enableStickyHeader?: boolean;
fitToScreen?: boolean;
onColumnReorder?: (draggedColumnId: string, targetColumnId: string) => void;
headerRowProps?: TableRowProps;
headerCellProps?: TableCellProps;
containerSx?: SxProps;
resizeHandleSx?: SxProps;
slots?: Record<string, any>;
slotProps?: Record<string, any>;
[key: string]: any;
}
/**
* Renders table headers with sorting, dragging, and resizing capabilities
*/
export declare function TableHeader<T>(props: TableHeaderProps): ReactElement;
//# sourceMappingURL=table-header.d.ts.map