UNPKG

@vitorlans/react-table-ui

Version:

Out-of-the-box UI for React-Table 7

30 lines (29 loc) 901 B
import type { ReactNode } from 'react'; /** Type interface for loading options. * @category Options */ export interface LoadingOptions { /** Loading state. * @default false */ loading?: boolean; /** If true, loading is done in background. * Loading indicator is not shown if there is data on screen. * @default true */ backgroundLoading?: boolean; /** Loading status is shown in status bar. * @default true */ showLoadingStatus?: boolean; /** Component rendered during loading. * @default Spinner * @category Custom Component */ Component?: ReactNode; } /** Type interface for setting header/footer freeze. * @category Options */ export interface FreezeOptions { /** @default true */ columns?: boolean; /** @default true */ header?: boolean; /** @default true */ footer?: boolean; }