UNPKG

@sikka/hawa

Version:

Modern UI Kit made with Tailwind

34 lines (31 loc) 1.02 kB
import * as React from 'react'; import { RowData, ColumnDef } from '@tanstack/react-table'; import { D as DirectionType } from '../commonTypes-BtF87PmG.mjs'; type SimpleTableProps<DataProps = {}> = { direction?: DirectionType; columns: ColumnDef<DataProps>[]; headerless?: boolean; data: DataProps[]; condensed?: boolean; isLoading?: boolean; defaultSort?: string; classNames?: string; extra?: React.ReactNode; texts?: { searchPlaceholder?: string; noData?: any; page?: string; filter?: string; of?: string; total?: string; }; }; declare module "@tanstack/table-core" { interface ColumnMeta<TData extends RowData, TValue> { padding?: "condensed" | "default" | "noPadding"; sortable?: boolean; hidden?: boolean; } } declare const SimpleTable: <DataProps extends {}>({ columns, data, classNames, headerless, ...props }: SimpleTableProps<DataProps>) => React.JSX.Element; export { SimpleTable };