UNPKG

@heroui/table

Version:

Tables are used to display tabular data using rows and columns.

23 lines (20 loc) 798 B
import { HTMLHeroUIProps } from '@heroui/system'; import { TableBodyProps as TableBodyProps$1 } from '@react-types/table'; import { ReactNode } from 'react'; interface TableBodyProps<T> extends TableBodyProps$1<T>, Omit<HTMLHeroUIProps<"tbody">, keyof TableBodyProps$1<T>> { /** * Provides content to display a loading component when the `loadingState` is `loading` or `loadingMore`. */ loadingContent?: ReactNode; /** * Whether the table data is currently loading. * @default false */ isLoading?: boolean; /** * Provides content to display when there are no rows in the table. * */ emptyContent?: ReactNode; } declare const TableBody: <T>(props: TableBodyProps<T>) => JSX.Element; export { type TableBodyProps, TableBody as default };