tanstack-shadcn-table
Version:
A powerful, feature-rich React table component built on top of TanStack Table v8 with shadcn/ui styling. Optimized bundle size with 55% reduction through peer dependencies.
32 lines (31 loc) • 1.5 kB
TypeScript
import React, { ReactNode } from "react";
type DragEndEvent = import("@dnd-kit/core").DragEndEvent;
type DragStartEvent = import("@dnd-kit/core").DragStartEvent;
type SensorDescriptor = import("@dnd-kit/core").SensorDescriptor<any>;
type Modifier = import("@dnd-kit/core").Modifier;
type DndWrapperProps = {
children: ReactNode;
onDragEnd: (event: DragEndEvent) => void;
onDragStart?: (event: DragStartEvent) => void;
sensors: SensorDescriptor<any>[];
collisionDetection?: any;
modifiers?: Modifier[];
};
export declare function DndWrapper({ children, onDragEnd, onDragStart, sensors, collisionDetection, modifiers, }: DndWrapperProps): import("react/jsx-runtime").JSX.Element;
type SortableContextWrapperProps = {
children: ReactNode;
items: string[];
strategy: any;
};
export declare function SortableContextWrapper({ children, items, strategy, }: SortableContextWrapperProps): import("react/jsx-runtime").JSX.Element;
type SensorsCreatorProps = {
onSensorsReady: (sensors: any[]) => void;
};
export declare const SensorsCreatorLazy: React.LazyExoticComponent<({ onSensorsReady }: SensorsCreatorProps) => null>;
export declare const lazyLoadDndUtilities: () => Promise<{
closestCenter: import("@dnd-kit/core").CollisionDetection;
restrictToHorizontalAxis: import("@dnd-kit/core").Modifier;
arrayMove: typeof import("@dnd-kit/sortable").arrayMove;
horizontalListSortingStrategy: import("@dnd-kit/sortable").SortingStrategy;
}>;
export {};