UNPKG

zeed-dynamic-table

Version:

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

15 lines (14 loc) 499 B
import { ReactNode } from "react"; import { ColumnType } from "../types"; type ThProps<T> = { column: ColumnType<keyof T & string>; colIndex: any; children: ReactNode; }; /** * Th component represents a table header cell * Handles special styling for action columns and other column types * Updated with dark mode support */ declare const Th: <T extends Record<string, any>>({ column, colIndex, children, }: ThProps<T>) => import("react/jsx-runtime").JSX.Element; export default Th;