@ackplus/react-tanstack-data-table
Version:
A powerful React data table component built with MUI and TanStack Table
10 lines (9 loc) • 714 B
TypeScript
import { ComponentType } from 'react';
import { DataTableSlots } from '../types/slots.types';
export declare function getSlotComponent<T, K extends keyof DataTableSlots<T>>(slots: Partial<DataTableSlots<T>> | undefined, slotName: K, fallback: ComponentType<any>): ComponentType<any>;
export declare function renderSlot(slotComponent: ComponentType<any>, defaultProps: any, slotProps?: any): import("react/jsx-runtime").JSX.Element;
export declare function createSlottableComponent<T, K extends keyof DataTableSlots<T>>(slotName: K, defaultComponent: ComponentType<any>): (props: {
slots?: Partial<DataTableSlots<T>>;
slotProps?: any;
componentProps: any;
}) => import("react/jsx-runtime").JSX.Element;