UNPKG

zeed-dynamic-table

Version:

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

18 lines (17 loc) 651 B
import { ReactNode } from "react"; import { ColumnType } from "../types"; type ActionTdProps<T> = { column: ColumnType<keyof T & string>; item: any; colIndex: any; children: ReactNode; onClick?: () => void; adJustClass?: string; }; /** * ActionTd is a specialized table cell component for action buttons * Used for edit, delete, and other action buttons * Improved with direct CSS styles instead of Tailwind classes */ declare const ActionTd: <T extends Record<string, any>>({ column, item, colIndex, children, onClick, adJustClass, }: ActionTdProps<T>) => import("react/jsx-runtime").JSX.Element; export default ActionTd;