import { ComponentChildren } from '../../shared/children'; import { GlobalProps } from '../../shared/global'; interface PaginationProps { /** * Whether to use pagination controls. */ paginate?: boolean; /** * Called when the previous page button is clicked. */ onPreviousPage?: () => void; /** * Called when the next page button is clicked. */ onNextPage?: () => void; /** * Whether there's an additional page of data. */ hasNextPage?: boolean; /** * Whether there's a previous page of data. */ hasPreviousPage?: boolean; /** * Whether the table is in a loading state, such as initial page load or loading the next page in a paginated table. * When true, the table could be in an inert state, which prevents user interaction. */ loading?: boolean; } export interface TableProps extends GlobalProps, PaginationProps { /** * The content of the Table. */ children?: ComponentChildren; /** * Sets the layout of the Table. * * - `list`: The Table is always displayed as a list. * - `table`: The Table is always displayed as a table. * - `auto`: The Table is displayed as a table on wide devices and as a list on narrow devices. * * @default 'auto' */ variant?: 'list' | 'table' | 'auto'; } export {};