UNPKG

zeed-dynamic-table

Version:

A flexible and dynamic table component for React and Next.js applications without Tailwind dependencies

16 lines (15 loc) 525 B
import { ReactNode } from "react"; import { ColumnType } from "../types"; type TdProps<T> = { column: ColumnType<keyof T & string>; item: any; colIndex: any; children: ReactNode; }; /** * Td component represents a standard table cell * Handles dynamic properties and styling based on column configuration * Updated with dark mode support */ declare const Td: <T extends Record<string, any>>({ column, item, colIndex, children, }: TdProps<T>) => import("react/jsx-runtime").JSX.Element; export default Td;